home *** CD-ROM | disk | FTP | other *** search
Unknown | 1998-03-02 | 363.0 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| gt2
| Kopftext: 'HELP('
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 48 45 4c 50 28 00 00 00 | fa 00 00 00 ff ff ff ff |HELP(...|........|
|00000010| 2c 00 00 00 00 fd ff ff | 00 00 00 00 a8 07 00 00 |,.......|........|
|00000020| 00 01 00 00 00 00 00 00 | 24 00 00 00 44 49 52 24 |........|$...DIR$|
|00000030| b0 07 00 00 b0 07 00 00 | dc 07 00 00 47 fd ff ff |........|....G...|
|00000040| ed bb c5 cd 28 02 00 00 | 13 01 00 00 00 00 00 00 |....(...|........|
|00000050| 41 44 46 53 5f 00 00 00 | 20 21 00 00 47 fd ff ff |ADFS_...| !..G...|
|00000060| 39 bd c5 cd 2c 00 00 00 | 13 01 00 00 00 00 00 00 |9...,...|........|
|00000070| 42 61 73 69 63 54 72 61 | 6e 73 5f 00 80 21 00 00 |BasicTra|ns_..!..|
|00000080| 47 fd ff ff 4f bd c5 cd | cc 00 00 00 13 01 00 00 |G...O...|........|
|00000090| 00 00 00 00 42 75 66 66 | 65 72 5f 00 10 29 00 00 |....Buff|er_..)..|
|000000a0| 47 fd ff ff e1 bd c5 cd | 2c 00 00 00 13 01 00 00 |G.......|,.......|
|000000b0| 00 00 00 00 43 61 63 68 | 65 5f 00 00 d8 29 00 00 |....Cach|e_...)..|
|000000c0| 47 fd ff ff f8 bd c5 cd | 48 03 00 00 13 01 00 00 |G.......|H.......|
|000000d0| 00 00 00 00 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |....Colo|urTrans_|
|000000e0| 00 00 00 00 f0 4b 00 00 | 47 fd ff ff 7e bf c5 cd |.....K..|G...~...|
|000000f0| 50 00 00 00 13 01 00 00 | 00 00 00 00 44 65 62 75 |P.......|....Debu|
|00000100| 67 67 65 72 5f 00 00 00 | b4 4d 00 00 47 fd ff ff |gger_...|.M..G...|
|00000110| b5 bf c5 cd 2c 00 00 00 | 13 01 00 00 00 00 00 00 |....,...|........|
|00000120| 44 65 76 69 63 65 46 53 | 5f 00 00 00 70 4e 00 00 |DeviceFS|_...pN..|
|00000130| 47 fd ff ff d7 bf c5 cd | 2c 00 00 00 13 01 00 00 |G.......|,.......|
|00000140| 00 00 00 00 44 4d 41 5f | 00 00 00 00 50 4f 00 00 |....DMA_|....PO..|
|00000150| 47 fd ff ff ea bf c5 cd | 9c 00 00 00 13 01 00 00 |G.......|........|
|00000160| 00 00 00 00 44 4f 53 46 | 53 5f 00 00 f8 5a 00 00 |....DOSF|S_...Z..|
|00000170| 47 fd ff ff 44 c0 c5 cd | 6c 00 00 00 13 01 00 00 |G...D...|l.......|
|00000180| 00 00 00 00 44 72 61 77 | 46 69 6c 65 5f 00 00 00 |....Draw|File_...|
|00000190| f0 61 00 00 47 fd ff ff | 89 c0 c5 cd 08 02 00 00 |.a..G...|........|
|000001a0| 13 01 00 00 00 00 00 00 | 44 72 61 77 5f 00 00 00 |........|Draw_...|
|000001b0| 8c 74 00 00 47 fd ff ff | ec c1 c5 cd 20 04 00 00 |.t..G...|.... ...|
|000001c0| 13 01 00 00 00 00 00 00 | 45 63 6f 6e 65 74 5f 00 |........|Econet_.|
|000001d0| 50 98 00 00 47 fd ff ff | ef c3 c5 cd 64 00 00 00 |P...G...|....d...|
|000001e0| 13 01 00 00 00 00 00 00 | 65 76 65 6e 74 5f 00 00 |........|event_..|
|000001f0| 10 a2 00 00 47 fd ff ff | 43 c4 c5 cd d0 04 00 00 |....G...|C.......|
|00000200| 13 01 00 00 00 00 00 00 | 46 69 6c 65 43 6f 72 65 |........|FileCore|
|00000210| 5f 00 00 00 d0 f1 00 00 | 47 fd ff ff f0 c6 c5 cd |_.......|G.......|
|00000220| 18 04 00 00 13 01 00 00 | 00 00 00 00 46 6f 6e 74 |........|....Font|
|00000230| 5f 00 00 00 00 22 01 00 | 47 fd ff ff 4e c9 c5 cd |_...."..|G...N...|
|00000240| e8 00 00 00 13 01 00 00 | 00 00 00 00 48 6f 75 72 |........|....Hour|
|00000250| 67 6c 61 73 73 5f 00 00 | 54 28 01 00 47 fd ff ff |glass_..|T(..G...|
|00000260| dc c9 c5 cd 2c 00 00 00 | 13 01 00 00 00 00 00 00 |....,...|........|
|00000270| 49 49 43 5f 00 00 00 00 | a4 28 01 00 47 fd ff ff |IIC_....|.(..G...|
|00000280| f2 c9 c5 cd 2c 00 00 00 | 13 01 00 00 00 00 00 00 |....,...|........|
|00000290| 46 53 4c 6f 63 6b 5f 00 | 20 29 01 00 47 fd ff ff |FSLock_.| )..G...|
|000002a0| 11 ca c5 cd 50 01 00 00 | 13 01 00 00 00 00 00 00 |....P...|........|
|000002b0| 66 73 79 73 5f 00 00 00 | 0c 39 01 00 47 fd ff ff |fsys_...|.9..G...|
|000002c0| c1 ca c5 cd 40 01 00 00 | 13 01 00 00 00 00 00 00 |....@...|........|
|000002d0| 4d 65 73 73 61 67 65 54 | 72 61 6e 73 5f 00 00 00 |MessageT|rans_...|
|000002e0| 48 4b 01 00 47 fd ff ff | 8f cb c5 cd 4c 00 00 00 |HK..G...|....L...|
|000002f0| 13 01 00 00 00 00 00 00 | 46 50 45 6d 75 6c 61 74 |........|FPEmulat|
|00000300| 6f 72 5f 00 30 4c 01 00 | 47 fd ff ff c0 cb c5 cd |or_.0L..|G.......|
|00000310| d4 02 00 00 13 01 00 00 | 00 00 00 00 49 6d 61 67 |........|....Imag|
|00000320| 65 45 6e 74 72 79 5f 00 | cc 6f 01 00 47 fd ff ff |eEntry_.|.o..G...|
|00000330| 5a cd c5 cd 2c 00 00 00 | 13 01 00 00 00 00 00 00 |Z...,...|........|
|00000340| 52 61 6d 46 53 5f 00 00 | 40 70 01 00 47 fd ff ff |RamFS_..|@p..G...|
|00000350| 81 cd c5 cd 0c 02 00 00 | 13 01 00 00 00 00 00 00 |........|........|
|00000360| 73 65 72 76 69 63 65 5f | 00 00 00 00 d4 a6 01 00 |service_|........|
|00000370| 47 fd ff ff 48 cf c5 cd | 4c 00 00 00 13 01 00 00 |G...H...|L.......|
|00000380| 00 00 00 00 53 63 72 65 | 65 6e 42 6c 61 6e 6b 65 |....Scre|enBlanke|
|00000390| 72 5f 00 00 54 aa 01 00 | 47 fd ff ff c7 cf c5 cd |r_..T...|G.......|
|000003a0| 80 00 00 00 13 01 00 00 | 00 00 00 00 53 63 72 65 |........|....Scre|
|000003b0| 65 6e 4d 6f 64 65 73 5f | 00 00 00 00 80 af 01 00 |enModes_|........|
|000003c0| 47 fd ff ff 14 d0 c5 cd | 2c 00 00 00 13 01 00 00 |G.......|,.......|
|000003d0| 00 00 00 00 53 68 61 72 | 65 64 43 4c 69 62 72 61 |....Shar|edCLibra|
|000003e0| 72 79 5f 00 fc af 01 00 | 47 fd ff ff 31 d0 c5 cd |ry_.....|G...1...|
|000003f0| 2c 00 00 00 13 01 00 00 | 00 00 00 00 53 68 65 6c |,.......|....Shel|
|00000400| 6c 5f 00 00 54 b0 01 00 | 47 fd ff ff 5d d0 c5 cd |l_..T...|G...]...|
|00000410| 18 02 00 00 13 01 00 00 | 00 00 00 00 53 6f 75 6e |........|....Soun|
|00000420| 64 5f 00 00 7c ca 01 00 | 47 fd ff ff c7 d1 c5 cd |d_..|...|G.......|
|00000430| 2c 00 00 00 13 01 00 00 | 00 00 00 00 53 75 70 65 |,.......|....Supe|
|00000440| 72 5f 00 00 d8 ca 01 00 | 47 fd ff ff e7 d1 c5 cd |r_......|G.......|
|00000450| 54 00 00 00 13 01 00 00 | 00 00 00 00 73 77 69 5f |T.......|....swi_|
|00000460| 00 00 00 00 34 d4 01 00 | 47 fd ff ff 1f d2 c5 cd |....4...|G.......|
|00000470| 2c 00 00 00 13 01 00 00 | 00 00 00 00 53 71 75 61 |,.......|....Squa|
|00000480| 73 68 5f 00 90 d4 01 00 | 47 fd ff ff 42 d2 c5 cd |sh_.....|G...B...|
|00000490| e0 01 00 00 13 01 00 00 | 00 00 00 00 54 65 72 72 |........|....Terr|
|000004a0| 69 74 6f 72 79 5f 00 00 | b4 e1 01 00 47 fd ff ff |itory_..|....G...|
|000004b0| 5e d3 c5 cd 2c 00 00 00 | 13 01 00 00 00 00 00 00 |^...,...|........|
|000004c0| 4e 65 74 46 53 5f 00 00 | b0 e2 01 00 47 fd ff ff |NetFS_..|....G...|
|000004d0| c2 d3 c5 cd 2c 00 00 00 | 13 01 00 00 00 00 00 00 |....,...|........|
|000004e0| 4e 65 74 50 72 69 6e 74 | 5f 00 00 00 48 e3 01 00 |NetPrint|_...H...|
|000004f0| 47 fd ff ff f5 d3 c5 cd | ac 0d 00 00 13 01 00 00 |G.......|........|
|00000500| 00 00 00 00 4f 53 5f 00 | 54 f3 04 00 47 ff ff ff |....OS_.|T...G...|
|00000510| 29 c0 c0 cd 82 01 00 00 | 13 00 00 00 00 00 00 00 |).......|........|
|00000520| 75 73 65 72 00 00 00 00 | d8 f4 04 00 47 fd ff ff |user....|....G...|
|00000530| 0a fe c5 cd c4 00 00 00 | 13 01 00 00 00 00 00 00 |........|........|
|00000540| 50 61 72 61 6c 6c 65 6c | 5f 00 00 00 dc fc 04 00 |Parallel|_.......|
|00000550| 47 fd ff ff 8e fe c5 cd | 74 00 00 00 13 01 00 00 |G.......|t.......|
|00000560| 00 00 00 00 50 44 72 69 | 76 65 72 5f 00 00 00 00 |....PDri|ver_....|
|00000570| a4 01 05 00 47 fd ff ff | df fe c5 cd 2c 00 00 00 |....G...|....,...|
|00000580| 13 01 00 00 00 00 00 00 | 50 44 75 6d 70 65 72 5f |........|PDumper_|
|00000590| 00 00 00 00 44 02 05 00 | 47 fd ff ff 05 ff c5 cd |....D...|G.......|
|000005a0| 2c 00 00 00 13 01 00 00 | 00 00 00 00 50 6f 64 75 |,.......|....Podu|
|000005b0| 6c 65 5f 00 4c 03 05 00 | 47 fd ff ff 20 c0 a2 cd |le_.L...|G... ...|
|000005c0| 5d 03 00 00 13 00 00 00 | 00 00 00 00 21 52 6f 6f |].......|....!Roo|
|000005d0| 74 00 00 00 ac 06 05 00 | 45 fc ff ff c3 d8 0e e3 |t.......|E.......|
|000005e0| 20 00 00 00 13 00 00 00 | 00 00 00 00 21 50 72 65 | .......|....!Pre|
|000005f0| 00 00 00 00 cc 06 05 00 | 47 fd ff ff 3d ff c5 cd |........|G...=...|
|00000600| 4c 00 00 00 13 01 00 00 | 00 00 00 00 4a 6f 79 73 |L.......|....Joys|
|00000610| 74 69 63 6b 5f 00 00 00 | 98 09 05 00 47 fd ff ff |tick_...|....G...|
|00000620| 6f ff c5 cd d4 01 00 00 | 13 01 00 00 00 00 00 00 |o.......|........|
|00000630| 4a 50 45 47 5f 00 00 00 | d8 20 05 00 47 fd ff ff |JPEG_...|. ..G...|
|00000640| 6c 00 c6 cd 2c 00 00 00 | 13 01 00 00 00 00 00 00 |l...,...|........|
|00000650| 52 65 73 6f 75 72 63 65 | 46 53 5f 00 44 21 05 00 |Resource|FS_.D!..|
|00000660| 47 fd ff ff 8f 00 c6 cd | 2c 00 00 00 13 01 00 00 |G.......|,.......|
|00000670| 00 00 00 00 53 43 53 49 | 5f 00 00 00 ec 21 05 00 |....SCSI|_....!..|
|00000680| 47 fd ff ff a5 00 c6 cd | 5c 00 00 00 13 01 00 00 |G.......|\.......|
|00000690| 00 00 00 00 43 44 46 53 | 5f 00 00 00 70 26 05 00 |....CDFS|_...p&..|
|000006a0| 47 fd ff ff df 00 c6 cd | 50 03 00 00 13 01 00 00 |G.......|P.......|
|000006b0| 00 00 00 00 43 44 5f 00 | 24 41 05 00 47 fd ff ff |....CD_.|$A..G...|
|000006c0| 4a 03 c6 cd 2c 00 00 00 | 13 01 00 00 00 00 00 00 |J...,...|........|
|000006d0| 41 54 41 50 49 5f 00 00 | a0 41 05 00 47 fd ff ff |ATAPI_..|.A..G...|
|000006e0| 7a 03 c6 cd 2c 00 00 00 | 13 01 00 00 00 00 00 00 |z...,...|........|
|000006f0| 52 65 6d 6f 74 65 50 72 | 69 6e 74 65 72 53 75 70 |RemotePr|interSup|
|00000700| 70 6f 72 74 5f 00 00 00 | 90 42 05 00 47 fd ff ff |port_...|.B..G...|
|00000710| b1 03 c6 cd 2c 00 00 00 | 13 01 00 00 00 00 00 00 |....,...|........|
|00000720| 4d 61 6b 65 50 53 46 6f | 6e 74 5f 00 18 43 05 00 |MakePSFo|nt_..C..|
|00000730| 47 fd ff ff f3 03 c6 cd | 2c 00 00 00 13 01 00 00 |G.......|,.......|
|00000740| 00 00 00 00 50 6f 72 74 | 61 62 6c 65 5f 00 00 00 |....Port|able_...|
|00000750| b8 43 05 00 47 fd ff ff | 9d 85 c0 cd a5 07 00 00 |.C..G...|........|
|00000760| 13 00 00 00 00 00 00 00 | 61 62 6f 75 74 00 00 00 |........|about...|
|00000770| 60 4b 05 00 47 fd ff ff | e8 d1 9a cd cd 02 00 00 |`K..G...|........|
|00000780| 13 00 00 00 00 00 00 00 | 43 6f 6e 74 72 69 62 75 |........|Contribu|
|00000790| 74 6f 72 73 00 00 00 00 | 30 4e 05 00 47 fd ff ff |tors....|0N..G...|
|000007a0| bc 04 c6 cd a4 04 00 00 | 13 01 00 00 00 00 00 00 |........|........|
|000007b0| 46 53 45 6e 74 72 79 5f | 00 00 00 00 c0 8f 05 00 |FSEntry_|........|
|000007c0| 47 fd ff ff 73 08 c6 cd | ec 00 00 00 13 01 00 00 |G...s...|........|
|000007d0| 00 00 00 00 76 65 63 74 | 6f 72 5f 00 44 49 52 24 |....vect|or_.DIR$|
|000007e0| 28 02 00 00 28 02 00 00 | 04 0a 00 00 46 fd ff ff |(...(...|....F...|
|000007f0| c8 e9 a2 d7 f5 00 00 00 | 13 00 00 00 00 00 00 00 |........|........|
|00000800| 21 52 6f 6f 74 00 00 00 | fc 0a 00 00 46 ff ff ff |!Root...|....F...|
|00000810| 0f 10 a3 d7 09 01 00 00 | 13 00 00 00 00 00 00 00 |........|........|
|00000820| 43 6f 6e 74 72 6f 6c 6c | 65 72 54 79 70 65 00 00 |Controll|erType..|
|00000830| 08 0c 00 00 46 ff ff ff | 2c 98 ab d7 9d 00 00 00 |....F...|,.......|
|00000840| 13 00 00 00 00 00 00 00 | 44 72 69 76 65 73 00 00 |........|Drives..|
|00000850| a8 0c 00 00 46 ff ff ff | b5 aa ab d7 a9 00 00 00 |....F...|........|
|00000860| 13 00 00 00 00 00 00 00 | 44 65 73 63 72 69 62 65 |........|Describe|
|00000870| 44 69 73 63 00 00 00 00 | 54 0d 00 00 46 ff ff ff |Disc....|T...F...|
|00000880| 4e af ab d7 9c 00 00 00 | 13 00 00 00 00 00 00 00 |N.......|........|
|00000890| 44 69 73 63 4f 70 00 00 | f0 0d 00 00 46 ff ff ff |DiscOp..|....F...|
|000008a0| 5c c0 ab d7 7a 00 00 00 | 13 00 00 00 00 00 00 00 |\...z...|........|
|000008b0| 45 43 43 53 41 6e 64 52 | 65 74 72 69 65 73 00 00 |ECCSAndR|etries..|
|000008c0| 6c 0e 00 00 46 ff ff ff | aa c4 ab d7 a3 00 00 00 |l...F...|........|
|000008d0| 13 00 00 00 00 00 00 00 | 46 72 65 65 53 70 61 63 |........|FreeSpac|
|000008e0| 65 00 00 00 10 0f 00 00 | 46 ff ff ff 1c ff ac d7 |e.......|F.......|
|000008f0| 72 02 00 00 13 00 00 00 | 00 00 00 00 48 44 43 00 |r.......|....HDC.|
|00000900| 84 11 00 00 46 ff ff ff | 54 39 ac d7 a9 02 00 00 |....F...|T9......|
|00000910| 13 00 00 00 00 00 00 00 | 49 44 45 55 73 65 72 4f |........|IDEUserO|
|00000920| 70 00 00 00 30 14 00 00 | 46 ff ff ff 1b 44 ac d7 |p...0...|F....D..|
|00000930| 9c 00 00 00 13 00 00 00 | 00 00 00 00 4d 69 73 63 |........|....Misc|
|00000940| 4f 70 00 00 cc 14 00 00 | 46 ff ff ff d2 9c ac d7 |Op......|F.......|
|00000950| 3c 03 00 00 13 00 00 00 | 00 00 00 00 50 6f 77 65 |<.......|....Powe|
|00000960| 72 43 6f 6e 74 72 6f 6c | 00 00 00 00 08 18 00 00 |rControl|........|
|00000970| 46 ff ff ff 66 c4 ac d7 | 64 02 00 00 13 00 00 00 |F...f...|d.......|
|00000980| 00 00 00 00 52 65 74 72 | 69 65 73 00 6c 1a 00 00 |....Retr|ies.l...|
|00000990| 46 ff ff ff 6e d8 ac d7 | d8 01 00 00 13 00 00 00 |F...n...|........|
|000009a0| 00 00 00 00 53 65 74 49 | 44 45 43 6f 6e 74 72 6f |....SetI|DEContro|
|000009b0| 6c 6c 65 72 00 00 00 00 | 44 1c 00 00 46 ff ff ff |ller....|D...F...|
|000009c0| 85 ef ac d7 70 04 00 00 | 13 00 00 00 00 00 00 00 |....p...|........|
|000009d0| 56 65 74 46 6f 72 6d 61 | 74 00 00 00 b4 20 00 00 |VetForma|t.... ..|
|000009e0| 46 ff ff ff 48 4b a6 fa | 6a 00 00 00 13 00 00 00 |F...HK..|j.......|
|000009f0| 00 00 00 00 46 6c 70 50 | 72 6f 63 65 73 73 44 43 |....FlpP|rocessDC|
|00000a00| 42 00 00 00 44 41 54 41 | f5 00 00 00 41 44 46 53 |B...DATA|....ADFS|
|00000a10| 0a 23 50 72 65 66 69 78 | 20 41 44 46 53 5f 0a 23 |.#Prefix| ADFS_.#|
|00000a20| 50 61 72 65 6e 74 20 21 | 52 6f 6f 74 0a 23 54 61 |Parent !|Root.#Ta|
|00000a30| 62 6c 65 20 43 6f 6c 75 | 6d 6e 73 20 32 0a 3c 43 |ble Colu|mns 2.<C|
|00000a40| 6f 6e 74 72 6f 6c 6c 65 | 72 54 79 70 65 3e 0a 3c |ontrolle|rType>.<|
|00000a50| 44 65 73 63 72 69 62 65 | 44 69 73 63 3e 0a 3c 44 |Describe|Disc>.<D|
|00000a60| 69 73 63 4f 70 3e 0a 3c | 44 72 69 76 65 73 3e 0a |iscOp>.<|Drives>.|
|00000a70| 3c 45 43 43 53 41 6e 64 | 52 65 74 72 69 65 73 3e |<ECCSAnd|Retries>|
|00000a80| 0a 3c 46 6c 70 50 72 6f | 63 65 73 73 44 43 42 3e |.<FlpPro|cessDCB>|
|00000a90| 0a 3c 46 72 65 65 53 70 | 61 63 65 3e 0a 3c 48 44 |.<FreeSp|ace>.<HD|
|00000aa0| 43 3e 0a 3c 49 44 45 55 | 73 65 72 4f 70 3e 0a 3c |C>.<IDEU|serOp>.<|
|00000ab0| 4d 69 73 63 4f 70 3e 0a | 3c 50 6f 77 65 72 43 6f |MiscOp>.|<PowerCo|
|00000ac0| 6e 74 72 6f 6c 3e 0a 3c | 52 65 74 72 69 65 73 3e |ntrol>.<|Retries>|
|00000ad0| 0a 3c 53 65 74 49 44 45 | 43 6f 6e 74 72 6f 6c 6c |.<SetIDE|Controll|
|00000ae0| 65 72 3e 0a 3c 56 65 74 | 46 6f 72 6d 61 74 3e 0a |er>.<Vet|Format>.|
|00000af0| 23 45 6e 64 54 61 62 6c | 65 00 00 00 44 41 54 41 |#EndTabl|e...DATA|
|00000b00| 09 01 00 00 41 44 46 53 | 5f 43 6f 6e 74 72 6f 6c |....ADFS|_Control|
|00000b10| 6c 65 72 54 79 70 65 20 | 28 26 34 30 32 34 38 29 |lerType |(&40248)|
|00000b20| 0a 3d 3e 09 52 30 20 3d | 09 64 72 69 76 65 20 6e |.=>.R0 =|.drive n|
|00000b30| 75 6d 62 65 72 20 28 30 | 2d 37 29 0a 3c 3d 09 52 |umber (0|-7).<=.R|
|00000b40| 30 20 3d 09 63 6f 6e 74 | 72 6f 6c 6c 65 72 20 74 |0 =.cont|roller t|
|00000b50| 79 70 65 3a 0a 09 20 09 | 30 20 3d 3e 20 64 69 73 |ype:.. .|0 => dis|
|00000b60| 63 20 6e 6f 74 20 70 72 | 65 73 65 6e 74 0a 09 20 |c not pr|esent.. |
|00000b70| 09 31 20 3d 3e 20 31 37 | 37 32 0a 09 20 09 32 20 |.1 => 17|72.. .2 |
|00000b80| 3d 3e 20 37 31 30 2f 37 | 31 31 0a 09 20 09 33 20 |=> 710/7|11.. .3 |
|00000b90| 3d 3e 20 53 54 35 30 36 | 0a 09 20 09 34 20 3d 3e |=> ST506|.. .4 =>|
|00000ba0| 20 49 44 45 0a 0a 54 68 | 69 73 20 63 61 6c 6c 20 | IDE..Th|is call |
|00000bb0| 72 65 74 75 72 6e 73 20 | 74 68 65 20 63 6f 6e 74 |returns |the cont|
|00000bc0| 72 6f 6c 6c 65 72 20 74 | 79 70 65 20 6f 66 20 74 |roller t|ype of t|
|00000bd0| 68 65 20 67 69 76 65 6e | 20 64 72 69 76 65 2c 20 |he given| drive, |
|00000be0| 61 6e 64 20 69 73 20 6e | 6f 74 20 61 76 61 69 6c |and is n|ot avail|
|00000bf0| 61 62 6c 65 20 75 6e 64 | 65 72 20 52 49 53 43 20 |able und|er RISC |
|00000c00| 4f 53 20 32 2e 00 00 00 | 44 41 54 41 9d 00 00 00 |OS 2....|DATA....|
|00000c10| 41 44 46 53 5f 44 72 69 | 76 65 73 20 20 28 26 34 |ADFS_Dri|ves (&4|
|00000c20| 30 32 34 32 29 0a 23 50 | 61 72 65 6e 74 20 41 44 |0242).#P|arent AD|
|00000c30| 46 53 5f 0a 54 68 69 73 | 20 53 57 49 20 63 61 6c |FS_.This| SWI cal|
|00000c40| 6c 73 20 3c 46 69 6c 65 | 43 6f 72 65 5f 44 72 69 |ls <File|Core_Dri|
|00000c50| 76 65 73 3e 2c 20 61 66 | 74 65 72 20 66 69 72 73 |ves>, af|ter firs|
|00000c60| 74 20 73 65 74 74 69 6e | 67 20 52 38 20 74 6f 20 |t settin|g R8 to |
|00000c70| 70 6f 69 6e 74 20 74 6f | 20 74 68 65 20 46 69 6c |point to| the Fil|
|00000c80| 65 43 6f 72 65 20 69 6e | 73 74 61 6e 63 65 20 70 |eCore in|stance p|
|00000c90| 72 69 76 61 74 65 20 77 | 6f 72 64 20 66 6f 72 20 |rivate w|ord for |
|00000ca0| 41 44 46 53 2e 00 00 00 | 44 41 54 41 a9 00 00 00 |ADFS....|DATA....|
|00000cb0| 41 44 46 53 5f 44 65 73 | 63 72 69 62 65 44 69 73 |ADFS_Des|cribeDis|
|00000cc0| 63 20 28 26 34 30 32 34 | 35 29 0a 23 50 61 72 65 |c (&4024|5).#Pare|
|00000cd0| 6e 74 20 41 44 46 53 5f | 0a 54 68 69 73 20 53 57 |nt ADFS_|.This SW|
|00000ce0| 49 20 63 61 6c 6c 73 20 | 3c 46 69 6c 65 43 6f 72 |I calls |<FileCor|
|00000cf0| 65 5f 44 65 73 63 72 69 | 62 65 44 69 73 63 3e 2c |e_Descri|beDisc>,|
|00000d00| 20 61 66 74 65 72 20 66 | 69 72 73 74 20 73 65 74 | after f|irst set|
|00000d10| 74 69 6e 67 20 52 38 20 | 74 6f 20 70 6f 69 6e 74 |ting R8 |to point|
|00000d20| 20 74 6f 20 74 68 65 20 | 46 69 6c 65 43 6f 72 65 | to the |FileCore|
|00000d30| 20 69 6e 73 74 61 6e 63 | 65 20 70 72 69 76 61 74 | instanc|e privat|
|00000d40| 65 20 77 6f 72 64 20 66 | 6f 72 20 41 44 46 53 2e |e word f|or ADFS.|
|00000d50| 20 00 00 00 44 41 54 41 | 9c 00 00 00 41 44 46 53 | ...DATA|....ADFS|
|00000d60| 5f 44 69 73 63 4f 70 20 | 28 26 34 30 32 34 30 29 |_DiscOp |(&40240)|
|00000d70| 0a 23 50 61 72 65 6e 74 | 20 41 44 46 53 5f 0a 54 |.#Parent| ADFS_.T|
|00000d80| 68 69 73 20 53 57 49 20 | 63 61 6c 6c 73 20 3c 46 |his SWI |calls <F|
|00000d90| 69 6c 65 43 6f 72 65 5f | 44 69 73 63 4f 70 3e 2c |ileCore_|DiscOp>,|
|00000da0| 20 61 66 74 65 72 20 66 | 69 72 73 74 20 73 65 74 | after f|irst set|
|00000db0| 74 69 6e 67 20 52 38 20 | 74 6f 20 70 6f 69 6e 74 |ting R8 |to point|
|00000dc0| 20 74 6f 20 74 68 65 20 | 46 69 6c 65 43 6f 72 65 | to the |FileCore|
|00000dd0| 20 69 6e 73 74 61 6e 63 | 65 20 70 72 69 76 61 74 | instanc|e privat|
|00000de0| 65 20 77 6f 72 64 20 66 | 6f 72 20 41 44 46 53 2e |e word f|or ADFS.|
|00000df0| 44 41 54 41 7a 00 00 00 | 41 44 46 53 5f 45 43 43 |DATAz...|ADFS_ECC|
|00000e00| 53 41 6e 64 52 65 74 72 | 69 65 73 20 20 28 26 34 |SAndRetr|ies (&4|
|00000e10| 30 32 35 30 29 0a 23 50 | 61 72 65 6e 74 20 41 44 |0250).#P|arent AD|
|00000e20| 46 53 5f 0a 54 68 69 73 | 20 63 61 6c 6c 20 69 73 |FS_.This| call is|
|00000e30| 20 66 6f 72 20 69 6e 74 | 65 72 6e 61 6c 20 75 73 | for int|ernal us|
|00000e40| 65 20 6f 6e 6c 79 2c 20 | 61 6e 64 20 6e 6f 74 20 |e only, |and not |
|00000e50| 61 76 61 69 6c 61 62 6c | 65 20 75 6e 64 65 72 20 |availabl|e under |
|00000e60| 52 49 53 43 20 4f 53 20 | 32 2e 00 00 44 41 54 41 |RISC OS |2...DATA|
|00000e70| a3 00 00 00 41 44 46 53 | 5f 46 72 65 65 53 70 61 |....ADFS|_FreeSpa|
|00000e80| 63 65 20 20 28 26 34 30 | 32 34 33 29 0a 23 50 61 |ce (&40|243).#Pa|
|00000e90| 72 65 6e 74 20 41 44 46 | 53 5f 0a 54 68 69 73 20 |rent ADF|S_.This |
|00000ea0| 53 57 49 20 63 61 6c 6c | 73 20 3c 46 69 6c 65 43 |SWI call|s <FileC|
|00000eb0| 6f 72 65 5f 46 72 65 65 | 53 70 61 63 65 3e 2c 20 |ore_Free|Space>, |
|00000ec0| 61 66 74 65 72 20 66 69 | 72 73 74 20 73 65 74 74 |after fi|rst sett|
|00000ed0| 69 6e 67 20 52 38 20 74 | 6f 20 70 6f 69 6e 74 20 |ing R8 t|o point |
|00000ee0| 74 6f 20 74 68 65 20 46 | 69 6c 65 43 6f 72 65 20 |to the F|ileCore |
|00000ef0| 69 6e 73 74 61 6e 63 65 | 20 70 72 69 76 61 74 65 |instance| private|
|00000f00| 20 77 6f 72 64 20 66 6f | 72 20 41 44 46 53 2e 00 | word fo|r ADFS..|
|00000f10| 44 41 54 41 72 02 00 00 | 41 44 46 53 5f 48 44 43 |DATAr...|ADFS_HDC|
|00000f20| 20 20 28 26 34 30 32 34 | 31 29 0a 23 50 61 72 65 | (&4024|1).#Pare|
|00000f30| 6e 74 20 41 44 46 53 5f | 0a 3d 3e 09 52 32 20 3d |nt ADFS_|.=>.R2 =|
|00000f40| 09 61 64 64 72 65 73 73 | 20 6f 66 20 61 6c 74 65 |.address| of alte|
|00000f50| 72 6e 61 74 69 76 65 20 | 68 61 72 64 20 64 69 73 |rnative |hard dis|
|00000f60| 63 20 63 6f 6e 74 72 6f | 6c 6c 65 72 0a 09 52 33 |c contro|ller..R3|
|00000f70| 20 3d 09 61 64 64 72 65 | 73 73 20 6f 66 20 70 6f | =.addre|ss of po|
|00000f80| 6c 6c 20 6c 6f 63 61 74 | 69 6f 6e 20 66 6f 72 20 |ll locat|ion for |
|00000f90| 49 52 51 2f 44 52 51 0a | 09 52 34 20 3d 09 62 69 |IRQ/DRQ.|.R4 =.bi|
|00000fa0| 74 73 20 66 6f 72 20 49 | 52 51 2f 44 52 51 0a 09 |ts for I|RQ/DRQ..|
|00000fb0| 52 35 20 3d 09 61 64 64 | 72 65 73 73 20 74 6f 20 |R5 =.add|ress to |
|00000fc0| 65 6e 61 62 6c 65 20 49 | 52 51 2f 44 52 51 0a 09 |enable I|RQ/DRQ..|
|00000fd0| 52 36 20 3d 09 62 69 74 | 73 20 74 6f 20 65 6e 61 |R6 =.bit|s to ena|
|00000fe0| 62 6c 65 20 49 52 51 2f | 44 52 51 0a 0a 54 68 69 |ble IRQ/|DRQ..Thi|
|00000ff0| 73 20 63 61 6c 6c 20 73 | 65 74 73 20 75 70 20 74 |s call s|ets up t|
|00001000| 68 65 20 61 64 64 72 65 | 73 73 20 6f 66 20 74 68 |he addre|ss of th|
|00001010| 65 20 53 54 35 30 35 36 | 20 68 61 72 64 20 64 69 |e ST5056| hard di|
|00001020| 73 63 20 63 6f 6e 74 72 | 6f 6c 6c 65 72 20 74 6f |sc contr|oller to|
|00001030| 20 62 65 20 75 73 65 64 | 20 62 79 20 74 68 65 20 | be used| by the |
|00001040| 41 44 46 53 2e 20 46 6f | 72 20 69 6e 73 74 61 6e |ADFS. Fo|r instan|
|00001050| 63 65 2c 20 61 6e 20 65 | 78 70 61 6e 73 69 6f 6e |ce, an e|xpansion|
|00001060| 20 63 61 72 64 20 63 61 | 6e 20 73 75 70 6c 6c 79 | card ca|n suplly|
|00001070| 20 61 6e 20 61 6c 74 65 | 72 6e 61 74 69 76 65 20 | an alte|rnative |
|00001080| 63 6f 6e 74 72 6f 6c 6c | 65 72 20 74 6f 20 74 68 |controll|er to th|
|00001090| 65 20 6f 6e 65 20 6e 6f | 72 6d 61 6c 6c 79 20 75 |e one no|rmally u|
|000010a0| 73 65 64 2e 20 54 68 65 | 20 63 6f 6e 74 72 6f 6c |sed. The| control|
|000010b0| 6c 65 72 20 6d 75 73 74 | 20 62 65 20 61 6e 20 48 |ler must| be an H|
|000010c0| 44 36 33 34 36 33 20 28 | 6f 72 20 63 6f 6d 70 61 |D63463 (|or compa|
|000010d0| 74 69 62 6c 65 29 2e 0a | 0a 54 68 65 20 70 6f 6c |tible)..|.The pol|
|000010e0| 6c 69 6e 67 20 61 6e 64 | 20 69 6e 74 65 72 75 70 |ling and| interup|
|000010f0| 74 20 73 65 6e 73 65 20 | 69 73 20 64 6f 6e 65 20 |t sense |is done |
|00001100| 75 73 69 6e 67 3a 0a 23 | 49 6e 64 65 6e 74 20 32 |using:.#|Indent 2|
|00001110| 3b 66 63 6f 64 65 0a 4c | 44 52 42 20 20 3c 52 6e |;fcode.L|DRB <Rn|
|00001120| 3d 3e 41 73 73 65 6d 62 | 6c 79 3a 52 6e 3e 2c 5b |=>Assemb|ly:Rn>,[|
|00001130| 70 6f 6c 6c 20 6c 6f 63 | 61 74 69 6f 6e 5d 0a 54 |poll loc|ation].T|
|00001140| 53 54 20 20 20 52 6e 2c | 5b 70 6f 6c 6c 20 62 69 |ST Rn,|[poll bi|
|00001150| 74 73 5d 0a 23 49 6e 64 | 65 6e 74 3b 66 0a 0a 54 |ts].#Ind|ent;f..T|
|00001160| 68 65 20 49 52 51 2f 44 | 52 51 20 6d 75 73 74 20 |he IRQ/D|RQ must |
|00001170| 62 65 20 31 20 77 68 65 | 6e 20 61 63 74 69 76 65 |be 1 whe|n active|
|00001180| 2e 0a 00 00 44 41 54 41 | a9 02 00 00 41 44 46 53 |....DATA|....ADFS|
|00001190| 5f 49 44 45 55 73 65 72 | 4f 70 20 28 26 34 30 32 |_IDEUser|Op (&402|
|000011a0| 34 42 29 0a 23 50 61 72 | 65 6e 74 20 41 44 46 53 |4B).#Par|ent ADFS|
|000011b0| 5f 0a 3d 3e 09 52 30 20 | 3d 09 3c 66 6c 61 67 73 |_.=>.R0 |=.<flags|
|000011c0| 3d 3e 2e 66 6c 61 67 73 | 3e 0a 09 52 32 20 3d 09 |=>.flags|>..R2 =.|
|000011d0| 70 6f 69 6e 74 65 72 20 | 74 6f 20 70 61 72 61 6d |pointer |to param|
|000011e0| 65 74 65 72 20 62 6c 6f | 63 6b 20 66 6f 72 20 63 |eter blo|ck for c|
|000011f0| 6f 6d 6d 61 6e 64 20 61 | 6e 64 20 72 65 73 75 6c |ommand a|nd resul|
|00001200| 74 73 0a 09 52 33 20 3d | 09 70 6f 69 6e 74 65 72 |ts..R3 =|.pointer|
|00001210| 20 74 6f 20 62 75 66 66 | 65 72 0a 09 52 34 20 3d | to buff|er..R4 =|
|00001220| 09 6c 65 6e 67 74 68 20 | 74 6f 20 74 72 61 6e 73 |.length |to trans|
|00001230| 66 65 72 0a 09 52 35 20 | 3d 09 74 69 6d 65 6f 75 |fer..R5 |=.timeou|
|00001240| 74 20 69 6e 20 63 65 6e | 74 69 73 65 63 6f 6e 64 |t in cen|tisecond|
|00001250| 73 20 28 30 20 3d 3e 20 | 75 73 65 20 64 65 66 61 |s (0 => |use defa|
|00001260| 75 6c 74 29 0a 09 52 31 | 32 20 3d 09 70 6f 69 6e |ult)..R1|2 =.poin|
|00001270| 74 65 72 20 74 6f 20 73 | 74 61 74 69 63 20 77 6f |ter to s|tatic wo|
|00001280| 72 6b 20 73 70 61 63 65 | 0a 0a 3c 3d 09 52 30 20 |rk space|..<=.R0 |
|00001290| 3d 09 63 6f 6d 6d 61 6e | 64 20 73 74 61 74 75 73 |=.comman|d status|
|000012a0| 20 28 30 20 6f 72 20 61 | 20 64 69 73 63 20 65 72 | (0 or a| disc er|
|000012b0| 72 6f 72 20 6e 75 6d 62 | 65 72 29 0a 09 52 32 20 |ror numb|er)..R2 |
|000012c0| 70 72 65 73 65 72 76 65 | 64 0a 09 52 33 2c 52 34 |preserve|d..R3,R4|
|000012d0| 20 75 70 64 61 74 65 64 | 0a 09 52 35 20 63 6f 72 | updated|..R5 cor|
|000012e0| 72 75 70 74 65 64 0a 0a | 54 68 69 73 20 63 61 6c |rupted..|This cal|
|000012f0| 6c 20 70 72 6f 76 69 64 | 65 73 20 74 68 65 20 64 |l provid|es the d|
|00001300| 69 72 65 63 74 20 75 73 | 65 20 69 6e 74 65 72 66 |irect us|e interf|
|00001310| 61 63 65 20 66 6f 72 20 | 6c 6f 77 2d 6c 65 76 65 |ace for |low-leve|
|00001320| 6c 20 49 44 45 20 63 6f | 6d 6d 61 6e 64 73 2e 20 |l IDE co|mmands. |
|00001330| 49 74 20 6d 75 73 74 20 | 6e 6f 74 20 62 65 20 63 |It must |not be c|
|00001340| 61 6c 6c 65 64 20 69 6e | 20 62 61 63 6b 67 72 6f |alled in| backgro|
|00001350| 75 6e 64 2e 0a 23 53 75 | 62 70 61 67 65 20 66 6c |und..#Su|bpage fl|
|00001360| 61 67 73 0a 49 44 45 20 | 43 6f 6e 74 72 6f 6c 6c |ags.IDE |Controll|
|00001370| 65 72 20 66 6c 61 67 73 | 0a 42 69 74 09 4d 65 61 |er flags|.Bit.Mea|
|00001380| 6e 69 6e 67 0a 23 6c 69 | 6e 65 0a 30 09 73 65 74 |ning.#li|ne.0.set|
|00001390| 20 3a 20 72 65 73 65 74 | 20 63 6f 6e 74 72 6f 6c | : reset| control|
|000013a0| 6c 65 72 0a 09 63 6c 72 | 20 3a 20 70 72 6f 63 65 |ler..clr| : proce|
|000013b0| 73 73 20 63 6f 6d 6d 61 | 6e 64 0a 32 34 2d 32 35 |ss comma|nd.24-25|
|000013c0| 09 74 72 61 6e 73 66 65 | 72 20 64 69 72 65 63 74 |.transfe|r direct|
|000013d0| 69 6f 6e 3a 0a 09 30 30 | 20 3a 20 6e 6f 20 74 72 |ion:..00| : no tr|
|000013e0| 61 6e 73 66 65 72 0a 09 | 30 31 20 3a 20 72 65 61 |ansfer..|01 : rea|
|000013f0| 64 20 28 69 65 20 62 69 | 74 20 32 34 20 73 65 74 |d (ie bi|t 24 set|
|00001400| 29 0a 09 31 30 20 3a 20 | 77 72 69 74 65 20 28 69 |)..10 : |write (i|
|00001410| 65 20 62 69 74 20 32 35 | 20 73 65 74 29 0a 09 31 |e bit 25| set)..1|
|00001420| 31 20 3a 20 72 65 73 65 | 72 76 65 64 0a 00 00 00 |1 : rese|rved....|
|00001430| 44 41 54 41 9c 00 00 00 | 41 44 46 53 5f 4d 69 73 |DATA....|ADFS_Mis|
|00001440| 63 4f 70 20 28 26 34 30 | 32 34 43 29 0a 23 50 61 |cOp (&40|24C).#Pa|
|00001450| 72 65 6e 74 20 41 44 46 | 53 5f 0a 54 68 69 73 20 |rent ADF|S_.This |
|00001460| 53 57 49 20 63 61 6c 6c | 73 20 3c 46 69 6c 65 43 |SWI call|s <FileC|
|00001470| 6f 72 65 5f 4d 69 73 63 | 4f 70 3e 2c 20 61 66 74 |ore_Misc|Op>, aft|
|00001480| 65 72 20 66 69 72 73 74 | 20 73 65 74 74 69 6e 67 |er first| setting|
|00001490| 20 52 38 20 74 6f 20 70 | 6f 69 6e 74 20 74 6f 20 | R8 to p|oint to |
|000014a0| 74 68 65 20 46 69 6c 65 | 43 6f 72 65 20 69 6e 73 |the File|Core ins|
|000014b0| 74 61 6e 63 65 20 70 72 | 69 76 61 74 65 20 77 6f |tance pr|ivate wo|
|000014c0| 72 64 20 66 6f 72 20 41 | 44 46 53 2e 44 41 54 41 |rd for A|DFS.DATA|
|000014d0| 3c 03 00 00 41 44 46 53 | 5f 50 6f 77 65 72 43 6f |<...ADFS|_PowerCo|
|000014e0| 6e 74 72 6f 6c 20 28 26 | 34 30 32 34 39 29 0a 3d |ntrol (&|40249).=|
|000014f0| 3e 09 52 30 20 3d 09 72 | 65 61 73 6f 6e 20 63 6f |>.R0 =.r|eason co|
|00001500| 64 65 0a 09 20 09 30 20 | 3d 3e 20 72 65 61 64 20 |de.. .0 |=> read |
|00001510| 64 72 69 76 65 20 73 70 | 69 6e 20 73 74 61 74 75 |drive sp|in statu|
|00001520| 73 0a 09 20 09 31 20 3d | 3e 20 73 65 74 20 64 72 |s.. .1 =|> set dr|
|00001530| 69 76 65 20 61 75 74 6f | 73 70 69 6e 64 6f 77 6e |ive auto|spindown|
|00001540| 0a 09 20 09 32 20 3d 3e | 20 63 6f 6e 74 72 6f 6c |.. .2 =>| control|
|00001550| 20 64 72 69 76 65 20 73 | 70 69 6e 20 64 69 72 65 | drive s|pin dire|
|00001560| 63 74 6c 79 20 77 69 74 | 68 6f 75 74 20 61 66 66 |ctly wit|hout aff|
|00001570| 65 63 74 69 6e 67 20 61 | 75 74 6f 73 70 69 6e 64 |ecting a|utospind|
|00001580| 6f 77 6e 0a 09 52 31 20 | 3d 09 64 72 69 76 65 0a |own..R1 |=.drive.|
|00001590| 09 52 32 20 3d 09 64 72 | 69 76 65 20 61 75 74 6f |.R2 =.dr|ive auto|
|000015a0| 73 70 69 6e 64 6f 77 6e | 2c 20 69 66 20 52 30 20 |spindown|, if R0 |
|000015b0| 3d 20 31 3b 0a 09 20 09 | 20 20 35 20 d7 a0 6e 75 |= 1;.. .| 5 ..nu|
|000015c0| 6d 62 65 72 20 6f 66 20 | 73 65 63 6f 6e 64 73 0a |mber of |seconds.|
|000015d0| 09 20 09 6f 72 20 61 63 | 74 69 6f 6e 20 74 6f 20 |. .or ac|tion to |
|000015e0| 74 61 6b 65 2c 20 69 66 | 20 52 30 20 3d 20 32 3b |take, if| R0 = 2;|
|000015f0| 0a 09 20 09 20 20 30 20 | 74 6f 20 73 70 69 6e 20 |.. . 0 |to spin |
|00001600| 64 6f 77 6e 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |down imm|ediately|
|00001610| 0a 09 20 09 20 20 6f 74 | 68 65 72 77 69 73 65 2c |.. . ot|herwise,|
|00001620| 20 73 70 69 6e 20 75 70 | 20 69 6d 6d 65 64 69 61 | spin up| immedia|
|00001630| 74 65 6c 79 0a 0a 3c 3d | 09 52 32 20 3d 09 64 72 |tely..<=|.R2 =.dr|
|00001640| 69 76 65 20 73 70 69 6e | 20 73 74 61 74 75 73 2c |ive spin| status,|
|00001650| 20 69 66 20 52 30 20 3d | 20 30 3b 0a 09 20 09 20 | if R0 =| 0;.. . |
|00001660| 20 30 20 69 66 20 64 72 | 69 76 65 20 69 73 6e 27 | 0 if dr|ive isn'|
|00001670| 74 20 73 70 69 6e 6e 69 | 6e 67 0a 09 20 09 20 20 |t spinni|ng.. . |
|00001680| 30 20 69 66 20 64 72 69 | 76 65 20 69 73 20 73 70 |0 if dri|ve is sp|
|00001690| 69 6e 6e 69 6e 67 0a 09 | 52 33 20 3d 09 70 72 65 |inning..|R3 =.pre|
|000016a0| 76 69 6f 75 73 6c 79 20 | 76 61 6c 75 65 20 66 6f |viously |value fo|
|000016b0| 72 20 64 72 69 76 65 20 | 61 75 74 6f 73 70 69 6e |r drive |autospin|
|000016c0| 64 6f 77 6e 2c 20 69 66 | 20 52 30 20 3d 20 31 0a |down, if| R0 = 1.|
|000016d0| 0a 54 68 69 73 20 63 61 | 6c 6c 20 63 6f 6e 74 72 |.This ca|ll contr|
|000016e0| 6f 6c 73 20 74 68 65 20 | 70 6f 77 65 72 20 73 61 |ols the |power sa|
|000016f0| 76 69 6e 67 20 66 65 61 | 74 75 72 65 73 20 6f 66 |ving fea|tures of|
|00001700| 20 74 68 65 20 41 44 46 | 53 20 73 79 73 74 65 6d | the ADF|S system|
|00001710| 2e 20 49 74 20 63 61 6e | 20 62 65 20 64 61 6e 67 |. It can| be dang|
|00001720| 65 72 6f 75 73 20 74 6f | 20 75 73 65 20 74 68 69 |erous to| use thi|
|00001730| 73 20 63 61 6c 6c 20 6f | 6e 20 64 72 69 76 65 73 |s call o|n drives|
|00001740| 20 74 68 61 74 20 6e 6f | 74 20 66 75 6c 6c 79 20 | that no|t fully |
|00001750| 73 75 70 70 6f 72 74 20 | 64 72 69 76 65 20 73 70 |support |drive sp|
|00001760| 69 6e 20 63 6f 6e 74 72 | 6f 6c 2e 20 54 68 65 20 |in contr|ol. The |
|00001770| 63 6f 6e 74 72 6f 6c 6c | 65 72 20 6f 6e 20 61 74 |controll|er on at|
|00001780| 20 6c 65 61 73 74 20 74 | 77 6f 20 64 72 69 76 65 | least t|wo drive|
|00001790| 73 20 74 65 73 74 65 64 | 20 68 61 6e 67 20 75 70 |s tested| hang up|
|000017a0| 20 77 68 65 6e 20 61 75 | 74 6f 73 70 69 6e 64 6f | when au|tospindo|
|000017b0| 77 6e 20 69 73 20 65 6e | 61 62 6c 65 64 3b 20 61 |wn is en|abled; a|
|000017c0| 20 72 65 73 65 74 20 64 | 6f 65 73 6e 27 74 20 72 | reset d|oesn't r|
|000017d0| 65 63 6f 76 65 72 20 74 | 68 65 20 73 69 74 75 61 |ecover t|he situa|
|000017e0| 74 69 6f 6e 2c 20 61 6c | 74 68 6f 75 67 68 74 20 |tion, al|thought |
|000017f0| 61 20 70 6f 77 65 72 2d | 64 6f 77 6e 20 72 65 73 |a power-|down res|
|00001800| 65 74 20 64 6f 65 73 2e | 44 41 54 41 64 02 00 00 |et does.|DATAd...|
|00001810| 41 44 46 53 5f 52 65 74 | 72 69 65 73 20 20 28 26 |ADFS_Ret|ries (&|
|00001820| 34 30 32 34 34 29 0a 23 | 50 61 72 65 6e 74 20 41 |40244).#|Parent A|
|00001830| 44 46 53 5f 0a 3d 3e 09 | 52 30 20 3d 09 6d 61 73 |DFS_.=>.|R0 =.mas|
|00001840| 6b 20 6f 66 20 62 69 74 | 73 20 74 6f 20 63 68 61 |k of bit|s to cha|
|00001850| 6e 67 65 0a 09 52 31 20 | 3d 09 6e 65 77 20 76 61 |nge..R1 |=.new va|
|00001860| 6c 75 65 73 20 6f 66 20 | 62 69 74 73 20 74 6f 20 |lues of |bits to |
|00001870| 63 68 61 6e 67 65 0a 0a | 3c 3d 09 52 30 20 70 72 |change..|<=.R0 pr|
|00001880| 65 73 65 72 76 65 64 0a | 09 52 31 20 3d 09 52 30 |eserved.|.R1 =.R0|
|00001890| 20 41 4e 44 20 65 6e 74 | 72 79 20 76 61 6c 75 65 | AND ent|ry value|
|000018a0| 20 6f 66 20 52 31 0a 09 | 52 32 20 3d 09 6f 6c 64 | of R1..|R2 =.old|
|000018b0| 20 76 61 6c 75 65 20 6f | 66 20 72 65 74 72 79 20 | value o|f retry |
|000018c0| 77 6f 72 64 0a 09 52 33 | 20 3d 09 6e 65 77 20 76 |word..R3| =.new v|
|000018d0| 61 6c 75 65 20 6f 66 20 | 72 65 74 72 79 20 77 6f |alue of |retry wo|
|000018e0| 72 64 0a 0a 54 68 69 73 | 20 63 61 6c 6c 20 73 65 |rd..This| call se|
|000018f0| 74 73 20 75 70 20 74 68 | 65 20 6e 75 6d 62 65 72 |ts up th|e number|
|00001900| 20 6f 66 20 72 65 74 72 | 69 65 73 20 75 73 65 64 | of retr|ies used|
|00001910| 20 62 79 20 77 72 69 74 | 69 6e 67 20 74 6f 20 74 | by writ|ing to t|
|00001920| 68 65 20 72 65 74 72 79 | 20 77 6f 72 64 2e 20 54 |he retry| word. T|
|00001930| 68 65 20 66 6f 72 6d 61 | 74 20 6f 66 20 74 68 65 |he forma|t of the|
|00001940| 20 77 6f 72 64 20 69 73 | 3a 0a 0a 23 54 61 62 0a | word is|:..#Tab.|
|00001950| 42 79 74 65 09 4e 75 6d | 62 65 72 20 6f 66 20 72 |Byte.Num|ber of r|
|00001960| 65 74 72 69 65 73 20 66 | 6f 72 0a 23 4c 69 6e 65 |etries f|or.#Line|
|00001970| 0a 30 09 68 61 72 64 20 | 64 69 73 63 20 72 65 61 |.0.hard |disc rea|
|00001980| 64 2f 77 72 69 74 65 20 | 73 65 63 74 6f 72 0a 31 |d/write |sector.1|
|00001990| 09 66 6c 6f 70 70 79 20 | 64 69 73 63 20 72 65 61 |.floppy |disc rea|
|000019a0| 64 2f 77 72 69 74 65 20 | 73 65 63 74 6f 72 0a 32 |d/write |sector.2|
|000019b0| 09 66 6c 6f 70 70 79 20 | 64 69 73 63 20 6d 6f 75 |.floppy |disc mou|
|000019c0| 6e 74 20 28 70 65 72 20 | 63 6f 70 79 20 6f 66 20 |nt (per |copy of |
|000019d0| 74 68 65 20 64 69 73 63 | 20 6d 61 70 29 0a 33 09 |the disc| map).3.|
|000019e0| 76 65 72 69 66 79 20 61 | 66 74 65 72 20 2a 46 6f |verify a|fter *Fo|
|000019f0| 72 6d 61 74 2c 20 62 65 | 66 6f 72 65 20 73 65 63 |rmat, be|fore sec|
|00001a00| 74 6f 72 20 69 73 20 63 | 6f 6e 73 69 64 65 72 65 |tor is c|onsidere|
|00001a10| 64 20 61 20 64 65 66 65 | 63 74 0a 0a 54 68 65 20 |d a defe|ct..The |
|00001a20| 6e 65 77 20 76 61 6c 75 | 65 20 69 73 20 63 61 6c |new valu|e is cal|
|00001a30| 63 75 6c 61 74 65 64 20 | 61 73 20 66 6f 6c 6c 6f |culated |as follo|
|00001a40| 77 73 3a 0a 20 20 28 6f | 6c 64 20 76 61 6c 75 65 |ws:. (o|ld value|
|00001a50| 20 41 4e 44 20 4e 4f 54 | 20 52 30 29 20 45 4f 52 | AND NOT| R0) EOR|
|00001a60| 20 28 52 31 20 41 4e 44 | 20 52 30 29 44 41 54 41 | (R1 AND| R0)DATA|
|00001a70| d8 01 00 00 41 44 46 53 | 5f 53 65 74 49 44 45 43 |....ADFS|_SetIDEC|
|00001a80| 6f 6e 74 72 6f 6c 6c 65 | 72 20 20 28 26 34 30 32 |ontrolle|r (&402|
|00001a90| 34 41 29 0a 23 50 61 72 | 65 6e 74 20 41 44 46 53 |4A).#Par|ent ADFS|
|00001aa0| 5f 0a 3d 3e 09 52 32 20 | 3d 09 70 6f 69 6e 74 65 |_.=>.R2 |=.pointe|
|00001ab0| 72 20 74 6f 20 49 44 45 | 20 63 6f 6e 74 72 6f 6c |r to IDE| control|
|00001ac0| 6c 65 72 0a 09 52 33 20 | 3d 09 70 6f 69 6e 74 65 |ler..R3 |=.pointe|
|00001ad0| 72 20 74 6f 20 69 6e 74 | 65 72 72 75 70 74 20 73 |r to int|errupt s|
|00001ae0| 74 61 74 75 73 20 6f 66 | 20 63 6f 6e 74 72 6f 6c |tatus of| control|
|00001af0| 6c 65 72 0a 09 52 34 20 | 3d 09 41 4e 44 20 77 69 |ler..R4 |=.AND wi|
|00001b00| 74 68 20 73 74 61 74 75 | 73 2c 20 4e 45 20 3d 3e |th statu|s, NE =>|
|00001b10| 20 49 52 51 0a 09 52 35 | 20 3d 09 70 6f 69 6e 74 | IRQ..R5| =.point|
|00001b20| 65 72 20 74 6f 20 69 6e | 74 65 72 72 75 70 74 20 |er to in|terrupt |
|00001b30| 6d 61 73 6b 0a 09 52 36 | 20 3d 09 4f 52 20 69 6e |mask..R6| =.OR in|
|00001b40| 74 6f 20 6d 61 73 6b 20 | 65 6e 61 62 6c 65 73 20 |to mask |enables |
|00001b50| 49 52 51 0a 09 52 37 20 | 3d 09 70 6f 69 6e 74 65 |IRQ..R7 |=.pointe|
|00001b60| 72 20 74 6f 20 64 61 74 | 61 20 72 65 61 64 20 72 |r to dat|a read r|
|00001b70| 6f 75 74 69 6e 65 20 28 | 30 20 66 6f 72 20 64 65 |outine (|0 for de|
|00001b80| 66 61 75 6c 74 29 0a 09 | 52 38 20 3d 09 70 6f 69 |fault)..|R8 =.poi|
|00001b90| 6e 74 65 72 20 74 6f 20 | 64 61 74 61 20 77 72 69 |nter to |data wri|
|00001ba0| 74 65 20 72 6f 75 74 69 | 6e 65 20 28 30 20 66 6f |te routi|ne (0 fo|
|00001bb0| 72 20 64 65 66 61 75 6c | 74 29 0a 09 52 31 32 20 |r defaul|t)..R12 |
|00001bc0| 3d 09 70 6f 69 6e 74 65 | 72 20 74 6f 20 73 74 61 |=.pointe|r to sta|
|00001bd0| 74 69 63 20 77 6f 72 6b | 20 73 70 61 63 65 0a 0a |tic work| space..|
|00001be0| 3c 3d 09 41 6c 6c 20 72 | 65 67 69 73 74 65 72 73 |<=.All r|egisters|
|00001bf0| 20 70 72 65 73 65 72 76 | 65 64 0a 0a 54 68 69 73 | preserv|ed..This|
|00001c00| 20 63 61 6c 6c 20 67 69 | 76 65 73 20 74 68 65 20 | call gi|ves the |
|00001c10| 49 44 45 20 64 72 69 76 | 65 72 20 74 68 65 20 64 |IDE driv|er the d|
|00001c20| 65 74 61 69 6c 73 20 6f | 66 20 61 6e 20 61 6c 74 |etails o|f an alt|
|00001c30| 65 72 6e 61 74 69 76 65 | 20 63 6f 6e 74 72 6f 6c |ernative| control|
|00001c40| 6c 65 72 2e 44 41 54 41 | 70 04 00 00 41 44 46 53 |ler.DATA|p...ADFS|
|00001c50| 5f 56 65 74 46 6f 72 6d | 61 74 20 20 28 26 34 30 |_VetForm|at (&40|
|00001c60| 32 34 36 29 0a 23 50 61 | 72 65 6e 74 20 41 44 46 |246).#Pa|rent ADF|
|00001c70| 53 5f 0a 3d 3e 09 52 30 | 20 3d 09 70 6f 69 6e 74 |S_.=>.R0| =.point|
|00001c80| 65 72 20 74 6f 20 64 69 | 73 63 20 66 6f 72 6d 61 |er to di|sc forma|
|00001c90| 74 20 73 74 72 75 63 74 | 75 72 65 20 74 6f 20 62 |t struct|ure to b|
|00001ca0| 65 20 76 65 74 74 65 64 | 0a 09 52 31 20 3d 09 70 |e vetted|..R1 =.p|
|00001cb0| 61 72 61 6d 65 74 65 72 | 73 20 70 72 65 76 69 6f |arameter|s previo|
|00001cc0| 75 73 6c 79 20 70 61 73 | 73 65 64 20 62 79 20 41 |usly pas|sed by A|
|00001cd0| 44 46 53 20 69 6e 20 52 | 32 20 74 6f 20 27 49 6d |DFS in R|2 to 'Im|
|00001ce0| 61 67 65 27 46 53 5f 44 | 69 73 63 46 6f 72 6d 61 |age'FS_D|iscForma|
|00001cf0| 74 20 28 69 65 20 64 72 | 69 76 65 20 6e 75 6d 62 |t (ie dr|ive numb|
|00001d00| 65 72 29 0a 0a 3c 3d 09 | 52 30 2c 52 31 20 70 72 |er)..<=.|R0,R1 pr|
|00001d10| 65 73 65 72 76 65 64 0a | 0a 54 68 69 73 20 63 61 |eserved.|.This ca|
|00001d20| 6c 6c 20 76 65 74 73 20 | 74 68 65 20 67 69 76 65 |ll vets |the give|
|00001d30| 6e 20 64 69 73 63 20 66 | 6f 72 6d 61 74 20 73 74 |n disc f|ormat st|
|00001d40| 72 75 63 74 75 72 65 20 | 66 6f 72 20 61 63 68 69 |ructure |for achi|
|00001d50| 65 76 61 62 69 6c 69 74 | 79 20 77 69 74 68 20 74 |evabilit|y with t|
|00001d60| 68 65 20 61 76 61 69 6c | 61 62 6c 65 20 68 61 72 |he avail|able har|
|00001d70| 64 77 61 72 65 2e 20 41 | 44 46 53 20 75 70 64 61 |dware. A|DFS upda|
|00001d80| 74 65 73 20 74 68 65 20 | 64 69 73 63 20 66 6f 72 |tes the |disc for|
|00001d90| 6d 61 74 20 73 74 72 75 | 63 74 75 72 65 73 20 77 |mat stru|ctures w|
|00001da0| 69 74 68 20 76 61 6c 75 | 65 73 20 74 68 61 74 20 |ith valu|es that |
|00001db0| 69 74 20 63 61 6e 20 61 | 63 74 75 61 6c 6c 79 20 |it can a|ctually |
|00001dc0| 61 63 68 69 65 76 65 20 | 77 69 74 68 20 74 68 65 |achieve |with the|
|00001dd0| 20 68 61 72 64 77 61 72 | 65 20 61 76 61 69 6c 61 | hardwar|e availa|
|00001de0| 62 6c 65 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ble. For| example|
|00001df0| 20 74 68 65 20 6f 6e 6c | 79 20 66 69 6c 6c 20 62 | the onl|y fill b|
|00001e00| 79 74 65 20 76 61 6c 75 | 65 20 61 76 61 69 6c 61 |yte valu|e availa|
|00001e10| 62 6c 65 20 77 68 65 6e | 20 66 6f 72 6d 61 74 74 |ble when| formatt|
|00001e20| 69 6e 67 20 6d 69 67 68 | 74 20 62 65 20 30 2c 20 |ing migh|t be 0, |
|00001e30| 62 75 74 20 74 68 65 20 | 72 65 71 75 65 73 74 65 |but the |requeste|
|00001e40| 64 20 76 61 6c 75 65 20 | 6d 61 79 20 62 65 20 26 |d value |may be &|
|00001e50| 34 45 2c 20 68 65 6e 63 | 65 20 30 20 77 6f 75 6c |4E, henc|e 0 woul|
|00001e60| 64 20 62 65 20 66 69 6c | 6c 65 64 20 69 6e 20 61 |d be fil|led in a|
|00001e70| 73 20 74 68 65 20 66 69 | 6c 6c 20 62 79 74 65 20 |s the fi|ll byte |
|00001e80| 76 61 6c 75 65 2e 0a 0a | 49 66 20 41 44 46 53 20 |value...|If ADFS |
|00001e90| 63 61 6e 27 74 20 73 65 | 6e 73 69 62 6c 79 20 64 |can't se|nsibly d|
|00001ea0| 6f 77 6e 67 72 61 64 65 | 20 74 68 65 20 70 61 72 |owngrade| the par|
|00001eb0| 61 6d 65 74 65 72 73 20 | 73 74 72 75 63 74 75 72 |ameters |structur|
|00001ec0| 65 2c 20 69 74 20 77 69 | 6c 6c 20 67 65 6e 65 72 |e, it wi|ll gener|
|00001ed0| 61 74 65 20 61 6e 20 65 | 72 72 6f 72 2e 0a 0a 54 |ate an e|rror...T|
|00001ee0| 68 69 73 20 63 61 6c 6c | 20 69 73 20 74 79 70 69 |his call| is typi|
|00001ef0| 63 61 6c 6c 79 20 6d 61 | 64 65 20 62 79 20 46 69 |cally ma|de by Fi|
|00001f00| 6c 65 43 6f 72 65 20 6f | 72 20 62 79 20 74 68 65 |leCore o|r by the|
|00001f10| 20 69 6d 61 67 65 20 66 | 69 6c 69 6e 67 20 73 79 | image f|iling sy|
|00001f20| 73 74 65 6d 20 27 49 6d | 61 67 65 46 53 27 2c 20 |stem 'Im|ageFS', |
|00001f30| 69 6e 20 72 65 73 70 6f | 6e 73 65 20 74 6f 20 41 |in respo|nse to A|
|00001f40| 44 46 53 20 63 61 6c 6c | 69 6e 67 20 3c 46 69 6c |DFS call|ing <Fil|
|00001f50| 65 43 6f 72 65 5f 44 69 | 73 63 46 6f 72 6d 61 74 |eCore_Di|scFormat|
|00001f60| 3e 20 6f 72 20 27 49 6d | 61 67 65 46 53 27 5f 44 |> or 'Im|ageFS'_D|
|00001f70| 69 73 63 46 6f 72 6d 61 | 74 20 28 65 67 20 3c 44 |iscForma|t (eg <D|
|00001f80| 4f 53 46 53 5f 44 69 73 | 63 46 6f 72 6d 61 74 3e |OSFS_Dis|cFormat>|
|00001f90| 29 20 72 65 73 70 65 63 | 74 69 76 65 6c 79 2e 0a |) respec|tively..|
|00001fa0| 0a 54 68 65 20 76 61 6c | 75 65 20 69 6e 20 52 31 |.The val|ue in R1|
|00001fb0| 20 69 73 20 75 73 65 64 | 20 74 6f 20 70 61 73 73 | is used| to pass|
|00001fc0| 20 65 6e 6f 75 67 68 20 | 69 6e 66 6f 72 6d 61 74 | enough |informat|
|00001fd0| 69 6f 6e 20 6f 6e 20 74 | 68 65 20 68 61 72 64 77 |ion on t|he hardw|
|00001fe0| 61 72 65 20 6f 6e 20 77 | 68 69 63 68 20 74 68 65 |are on w|hich the|
|00001ff0| 20 66 6f 72 6d 61 74 20 | 69 73 20 74 6f 20 74 61 | format |is to ta|
|00002000| 6b 65 20 70 6c 61 63 65 | 20 66 6f 72 20 74 68 65 |ke place| for the|
|00002010| 20 64 69 73 63 20 66 6f | 72 6d 61 74 20 73 74 72 | disc fo|rmat str|
|00002020| 75 63 74 75 72 65 20 74 | 6f 20 62 65 20 76 65 74 |ucture t|o be vet|
|00002030| 74 65 64 2e 20 41 44 46 | 53 20 75 73 65 73 20 74 |ted. ADF|S uses t|
|00002040| 68 65 20 64 72 69 76 65 | 20 6e 75 6d 62 65 72 20 |he drive| number |
|00002050| 66 6f 72 20 74 68 69 73 | 3b 20 6f 74 68 65 72 20 |for this|; other |
|00002060| 68 61 6e 64 6c 65 72 73 | 20 6f 66 20 64 69 73 63 |handlers| of disc|
|00002070| 73 20 6d 61 79 20 70 61 | 73 73 20 64 69 66 66 65 |s may pa|ss diffe|
|00002080| 72 65 6e 74 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |rent inf|ormation|
|00002090| 20 69 66 20 74 68 65 79 | 20 69 6d 70 6c 65 6d 65 | if they| impleme|
|000020a0| 6e 74 20 61 20 56 65 74 | 46 6f 72 6d 61 74 20 53 |nt a Vet|Format S|
|000020b0| 57 49 2e 0a 44 41 54 41 | 6a 00 00 00 41 44 46 53 |WI..DATA|j...ADFS|
|000020c0| 5f 46 6c 70 50 72 6f 63 | 65 73 73 44 43 42 20 28 |_FlpProc|essDCB (|
|000020d0| 26 34 30 32 34 37 29 0a | 54 68 69 73 20 63 61 6c |&40247).|This cal|
|000020e0| 6c 20 69 73 20 66 6f 72 | 20 69 6e 74 65 72 6e 61 |l is for| interna|
|000020f0| 6c 20 75 73 65 20 6f 6e | 6c 79 2c 20 61 6e 64 20 |l use on|ly, and |
|00002100| 6e 6f 74 20 61 76 61 69 | 6c 61 62 6c 65 20 75 6e |not avai|lable un|
|00002110| 64 65 72 20 52 49 53 43 | 20 4f 53 20 32 2e 00 00 |der RISC| OS 2...|
|00002120| 44 49 52 24 2c 00 00 00 | 2c 00 00 00 4c 21 00 00 |DIR$,...|,...L!..|
|00002130| 46 fd ff ff 5b 8b 1d 00 | 33 00 00 00 13 00 00 00 |F...[...|3.......|
|00002140| 00 00 00 00 21 52 6f 6f | 74 00 00 00 44 41 54 41 |....!Roo|t...DATA|
|00002150| 33 00 00 00 42 61 73 69 | 63 54 72 61 6e 73 0a 23 |3...Basi|cTrans.#|
|00002160| 50 61 72 65 6e 74 20 21 | 52 6f 6f 74 0a 45 72 72 |Parent !|Root.Err|
|00002170| 6f 72 0a 48 45 4c 50 0a | 4d 65 73 73 61 67 65 00 |or.HELP.|Message.|
|00002180| 44 49 52 24 cc 00 00 00 | cc 00 00 00 4c 22 00 00 |DIR$....|....L"..|
|00002190| 46 fd ff ff 77 c3 63 db | 8a 00 00 00 13 00 00 00 |F...w.c.|........|
|000021a0| 00 00 00 00 21 52 6f 6f | 74 00 00 00 d8 22 00 00 |....!Roo|t...."..|
|000021b0| 47 ff ff ff 4f ea a8 cd | 34 01 00 00 13 00 00 00 |G...O...|4.......|
|000021c0| 00 00 00 00 47 65 74 49 | 6e 66 6f 00 0c 24 00 00 |....GetI|nfo..$..|
|000021d0| 46 fd ff ff 9d 04 62 88 | b1 00 00 00 13 00 00 00 |F.....b.|........|
|000021e0| 00 00 00 00 62 75 66 66 | 65 72 73 00 c0 24 00 00 |....buff|ers..$..|
|000021f0| 46 fd ff ff 8c 19 1e 44 | 7a 00 00 00 13 00 00 00 |F......D|z.......|
|00002200| 00 00 00 00 66 6c 61 67 | 73 00 00 00 3c 25 00 00 |....flag|s...<%..|
|00002210| 47 ff ff ff 3a 77 b8 cd | 6b 02 00 00 13 00 00 00 |G...:w..|k.......|
|00002220| 00 00 00 00 43 72 65 61 | 74 65 00 00 a8 27 00 00 |....Crea|te...'..|
|00002230| 46 ff ff ff d8 53 a6 fa | 66 01 00 00 13 00 00 00 |F....S..|f.......|
|00002240| 00 00 00 00 72 65 6d 6f | 76 65 00 00 44 41 54 41 |....remo|ve..DATA|
|00002250| 8a 00 00 00 42 75 66 66 | 65 72 0a 23 50 61 72 65 |....Buff|er.#Pare|
|00002260| 6e 74 20 21 52 6f 6f 74 | 0a 23 50 72 65 66 69 78 |nt !Root|.#Prefix|
|00002270| 20 42 75 66 66 65 72 5f | 0a 3c 43 72 65 61 74 65 | Buffer_|.<Create|
|00002280| 3e 0a 44 65 72 65 67 69 | 73 74 65 72 0a 3c 47 65 |>.Deregi|ster.<Ge|
|00002290| 74 49 6e 66 6f 3e 0a 4c | 69 6e 6b 44 65 76 69 63 |tInfo>.L|inkDevic|
|000022a0| 65 0a 4d 6f 64 69 66 79 | 46 6c 61 67 73 0a 3c 52 |e.Modify|Flags.<R|
|000022b0| 65 6d 6f 76 65 3e 0a 52 | 65 67 69 73 74 65 72 0a |emove>.R|egister.|
|000022c0| 54 68 72 65 73 68 6f 6c | 64 0a 55 6e 6c 69 6e 6b |Threshol|d.Unlink|
|000022d0| 44 65 76 69 63 65 00 00 | 44 41 54 41 34 01 00 00 |Device..|DATA4...|
|000022e0| 42 75 66 66 65 72 5f 47 | 65 74 49 6e 66 6f 20 28 |Buffer_G|etInfo (|
|000022f0| 26 34 32 39 34 37 29 0a | 23 50 61 72 65 6e 74 20 |&42947).|#Parent |
|00002300| 42 75 66 66 65 72 5f 0a | 3d 3e 09 52 30 20 3d 09 |Buffer_.|=>.R0 =.|
|00002310| 3c 62 75 66 66 65 72 20 | 6e 75 6d 62 65 72 3d 3e |<buffer |number=>|
|00002320| 42 75 66 66 65 72 5f 62 | 75 66 66 65 72 73 3e 0a |Buffer_b|uffers>.|
|00002330| 3c 3d 09 52 30 20 3d 09 | 3c 66 6c 61 67 73 3d 3e |<=.R0 =.|<flags=>|
|00002340| 42 75 66 66 65 72 5f 66 | 6c 61 67 73 3e 0a 09 52 |Buffer_f|lags>..R|
|00002350| 31 20 3d 09 70 6f 69 6e | 74 65 72 20 74 6f 20 62 |1 =.poin|ter to b|
|00002360| 75 66 66 65 72 20 73 74 | 61 72 74 0a 09 52 32 20 |uffer st|art..R2 |
|00002370| 3d 09 70 6f 69 6e 74 65 | 72 20 74 6f 20 62 75 66 |=.pointe|r to buf|
|00002380| 66 65 72 20 65 6e 64 0a | 09 52 33 20 3d 09 69 6e |fer end.|.R3 =.in|
|00002390| 73 65 72 74 69 6f 6e 20 | 6f 66 66 73 65 74 0a 09 |sertion |offset..|
|000023a0| 52 34 20 3d 09 72 65 6d | 6f 76 61 6c 20 6f 66 66 |R4 =.rem|oval off|
|000023b0| 73 65 74 0a 09 52 35 20 | 3d 09 62 79 74 65 73 20 |set..R5 |=.bytes |
|000023c0| 66 72 65 65 0a 09 52 36 | 20 3d 09 62 79 74 65 73 |free..R6| =.bytes|
|000023d0| 20 75 73 65 64 0a 0a 54 | 68 69 73 20 53 57 49 20 | used..T|his SWI |
|000023e0| 72 65 61 64 73 20 69 6e | 66 6f 72 6d 61 74 69 6f |reads in|formatio|
|000023f0| 6e 20 61 62 6f 75 74 20 | 61 20 70 61 72 74 69 63 |n about |a partic|
|00002400| 75 6c 61 72 20 62 75 66 | 66 65 72 2e 44 41 54 41 |ular buf|fer.DATA|
|00002410| b1 00 00 00 42 75 66 66 | 65 72 20 62 75 66 66 65 |....Buff|er buffe|
|00002420| 72 73 0a 5c 23 09 46 6f | 72 0a 23 4c 69 6e 65 0a |rs.\#.Fo|r.#Line.|
|00002430| 30 09 4b 65 79 62 6f 61 | 72 64 0a 31 09 53 65 72 |0.Keyboa|rd.1.Ser|
|00002440| 69 61 6c 20 69 6e 70 75 | 74 0a 32 09 53 65 72 69 |ial inpu|t.2.Seri|
|00002450| 61 6c 20 6f 75 74 70 75 | 74 0a 33 09 50 72 69 6e |al outpu|t.3.Prin|
|00002460| 74 65 72 0a 34 09 53 6f | 75 6e 64 20 63 68 61 6e |ter.4.So|und chan|
|00002470| 6e 65 6c 20 30 0a 35 09 | 53 6f 75 6e 64 20 63 68 |nel 0.5.|Sound ch|
|00002480| 61 6e 6e 65 6c 20 31 0a | 36 09 53 6f 75 6e 64 20 |annel 1.|6.Sound |
|00002490| 63 68 61 6e 6e 65 6c 20 | 32 0a 37 09 53 6f 75 6e |channel |2.7.Soun|
|000024a0| 64 20 63 68 61 6e 6e 65 | 6c 20 33 0a 38 09 53 70 |d channe|l 3.8.Sp|
|000024b0| 65 65 63 68 0a 39 09 4d | 6f 75 73 65 0a 00 00 00 |eech.9.M|ouse....|
|000024c0| 44 41 54 41 7a 00 00 00 | 42 75 66 66 65 72 20 66 |DATAz...|Buffer f|
|000024d0| 6c 61 67 73 0a 42 69 74 | 09 4d 65 61 6e 69 6e 67 |lags.Bit|.Meaning|
|000024e0| 0a 23 4c 69 6e 65 0a 30 | 09 44 6f 72 6d 61 6e 74 |.#Line.0|.Dormant|
|000024f0| 0a 31 09 47 65 6e 65 72 | 61 74 65 20 65 76 65 6e |.1.Gener|ate even|
|00002500| 74 20 6f 6e 20 65 6d 70 | 74 79 0a 32 09 47 65 6e |t on emp|ty.2.Gen|
|00002510| 65 72 61 74 65 20 65 76 | 65 6e 74 20 6f 6e 20 66 |erate ev|ent on f|
|00002520| 75 6c 6c 0a 33 09 55 70 | 43 61 6c 6c 20 6f 6e 20 |ull.3.Up|Call on |
|00002530| 74 68 72 65 73 68 6f 6c | 64 0a 00 00 44 41 54 41 |threshol|d...DATA|
|00002540| 6b 02 00 00 42 75 66 66 | 65 72 5f 43 72 65 61 74 |k...Buff|er_Creat|
|00002550| 65 20 28 26 34 32 39 34 | 30 29 0a 23 50 61 72 65 |e (&4294|0).#Pare|
|00002560| 6e 74 20 42 75 66 66 65 | 72 5f 0a 3d 3e 09 52 30 |nt Buffe|r_.=>.R0|
|00002570| 20 3d 09 62 75 66 66 65 | 72 27 73 20 3c 66 6c 61 | =.buffe|r's <fla|
|00002580| 67 20 77 6f 72 64 3d 3e | 62 75 66 66 65 72 5f 66 |g word=>|buffer_f|
|00002590| 6c 61 67 73 3e 0a 09 52 | 31 20 3d 09 73 69 7a 65 |lags>..R|1 =.size|
|000025a0| 20 6f 66 20 62 75 66 66 | 65 72 20 74 6f 20 62 65 | of buff|er to be|
|000025b0| 20 63 72 65 61 74 65 64 | 0a 09 52 32 20 3d 09 70 | created|..R2 =.p|
|000025c0| 72 65 66 65 72 72 65 64 | 20 68 61 6e 64 6c 65 20 |referred| handle |
|000025d0| 66 6f 72 20 74 68 65 20 | 62 75 66 66 65 72 2c 20 |for the |buffer, |
|000025e0| 2d 31 20 74 6f 20 67 65 | 74 20 74 68 65 20 62 75 |-1 to ge|t the bu|
|000025f0| 66 66 65 72 20 6d 61 6e | 61 67 65 72 20 74 6f 20 |ffer man|ager to |
|00002600| 67 65 6e 65 72 61 74 65 | 20 6f 6e 65 0a 3c 3d 09 |generate| one.<=.|
|00002610| 52 30 20 3d 09 62 75 66 | 66 65 72 20 68 61 6e 64 |R0 =.buf|fer hand|
|00002620| 6c 65 0a 0a 54 68 69 73 | 20 63 6c 61 69 6d 73 20 |le..This| claims |
|00002630| 61 6e 20 61 72 65 61 20 | 6f 66 20 74 68 65 20 52 |an area |of the R|
|00002640| 4d 41 20 61 6e 64 20 72 | 65 67 69 73 74 65 72 73 |MA and r|egisters|
|00002650| 20 69 74 20 61 73 20 61 | 20 62 75 66 66 65 72 2e | it as a| buffer.|
|00002660| 20 49 74 20 63 61 6e 20 | 61 74 20 6d 6f 73 74 20 | It can |at most |
|00002670| 68 6f 6c 64 20 52 31 2d | 31 20 62 79 74 65 73 2e |hold R1-|1 bytes.|
|00002680| 0a 49 66 20 52 32 20 5c | 3c 3e 2d 31 2c 20 74 68 |.If R2 \|<>-1, th|
|00002690| 65 20 67 69 76 65 6e 20 | 6e 75 6d 62 65 72 20 69 |e given |number i|
|000026a0| 73 20 63 68 65 63 6b 65 | 64 20 66 6f 72 20 75 6e |s checke|d for un|
|000026b0| 69 71 75 65 2c 20 69 66 | 20 69 74 20 61 6c 72 65 |ique, if| it alre|
|000026c0| 61 64 79 20 65 78 69 73 | 74 2c 20 61 20 6e 65 77 |ady exis|t, a new|
|000026d0| 20 6f 6e 65 20 69 73 20 | 69 6e 76 65 6e 74 65 64 | one is |invented|
|000026e0| 2e 0a 4e 6f 74 65 2c 20 | 74 68 61 74 20 79 6f 75 |..Note, |that you|
|000026f0| 20 61 72 65 20 6e 6f 74 | 20 6e 65 65 64 69 6e 67 | are not| needing|
|00002700| 20 61 6e 79 20 63 6f 6d | 70 6c 69 63 61 74 65 64 | any com|plicated|
|00002710| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 73 20 74 6f | calcula|tions to|
|00002720| 20 77 72 69 74 65 20 64 | 61 74 61 20 69 6e 74 6f | write d|ata into|
|00002730| 20 74 68 65 20 62 75 66 | 66 65 72 2e 20 49 74 27 | the buf|fer. It'|
|00002740| 73 20 61 20 70 69 65 63 | 65 20 6f 66 20 6d 65 6d |s a piec|e of mem|
|00002750| 6f 72 79 20 6c 69 6b 65 | 20 61 6c 6c 20 6f 74 68 |ory like| all oth|
|00002760| 65 72 73 20 74 6f 6f 2e | 20 47 65 74 20 74 68 65 |ers too.| Get the|
|00002770| 20 61 64 64 72 65 73 73 | 20 77 69 74 68 20 3c 42 | address| with <B|
|00002780| 75 66 66 65 72 5f 47 65 | 74 49 6e 66 6f 3e 20 61 |uffer_Ge|tInfo> a|
|00002790| 6e 64 20 77 72 69 74 65 | 20 74 6f 20 74 68 65 20 |nd write| to the |
|000027a0| 62 75 66 66 65 72 2e 00 | 44 41 54 41 66 01 00 00 |buffer..|DATAf...|
|000027b0| 42 75 66 66 65 72 5f 52 | 65 6d 6f 76 65 20 28 26 |Buffer_R|emove (&|
|000027c0| 34 32 39 34 31 29 0a 23 | 50 61 72 65 6e 74 20 42 |42941).#|Parent B|
|000027d0| 75 66 66 65 72 5f 0a 3d | 3e 09 52 30 20 3d 09 48 |uffer_.=|>.R0 =.H|
|000027e0| 61 6e 64 6c 65 20 6f 66 | 20 62 75 66 66 65 72 20 |andle of| buffer |
|000027f0| 74 6f 20 62 65 20 72 65 | 6d 6f 76 65 64 0a 0a 54 |to be re|moved..T|
|00002800| 68 69 73 20 72 65 6d 6f | 76 65 73 20 74 68 65 20 |his remo|ves the |
|00002810| 62 75 66 66 65 72 20 73 | 70 65 63 69 66 69 65 64 |buffer s|pecified|
|00002820| 20 62 79 20 69 74 73 20 | 68 61 6e 64 6c 65 20 67 | by its |handle g|
|00002830| 69 76 65 6e 20 69 6e 20 | 52 30 2e 20 49 74 20 72 |iven in |R0. It r|
|00002840| 65 6c 65 61 73 65 73 20 | 74 68 65 20 77 6f 72 6b |eleases |the work|
|00002850| 73 70 61 63 65 20 69 6e | 20 74 68 65 20 52 4d 41 |space in| the RMA|
|00002860| 20 72 65 73 65 72 76 65 | 64 20 66 6f 72 20 74 68 | reserve|d for th|
|00002870| 69 73 20 62 75 66 66 65 | 72 2e 20 59 6f 75 20 73 |is buffe|r. You s|
|00002880| 68 6f 75 6c 64 20 74 68 | 69 73 20 74 6f 20 72 65 |hould th|is to re|
|00002890| 6d 6f 76 65 20 62 75 66 | 66 65 72 73 20 63 72 65 |move buf|fers cre|
|000028a0| 61 74 65 64 20 77 69 74 | 68 20 3c 42 75 66 66 65 |ated wit|h <Buffe|
|000028b0| 72 5f 43 72 65 61 74 65 | 3e 20 62 75 74 20 66 6f |r_Create|> but fo|
|000028c0| 72 20 62 75 66 66 65 72 | 73 20 6d 61 64 65 20 75 |r buffer|s made u|
|000028d0| 73 69 6e 67 20 42 75 66 | 66 65 72 5f 52 65 67 69 |sing Buf|fer_Regi|
|000028e0| 73 74 65 72 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |ster you| should |
|000028f0| 75 73 65 20 42 75 66 66 | 65 72 5f 44 65 52 65 67 |use Buff|er_DeReg|
|00002900| 69 73 74 65 72 20 69 6e | 73 74 65 61 64 2e 00 00 |ister in|stead...|
|00002910| 44 49 52 24 2c 00 00 00 | 2c 00 00 00 3c 29 00 00 |DIR$,...|,...<)..|
|00002920| 46 fd ff ff b4 4b 22 a5 | 9c 00 00 00 13 00 00 00 |F....K".|........|
|00002930| 00 00 00 00 21 52 6f 6f | 74 00 00 00 44 41 54 41 |....!Roo|t...DATA|
|00002940| 9c 00 00 00 43 61 63 68 | 65 0a 23 50 61 72 65 6e |....Cach|e.#Paren|
|00002950| 74 20 21 52 6f 6f 74 0a | 23 50 72 65 66 69 78 20 |t !Root.|#Prefix |
|00002960| 43 61 63 68 65 5f 0a 23 | 54 61 62 6c 65 20 43 6f |Cache_.#|Table Co|
|00002970| 6c 75 6d 6e 73 20 32 0a | 43 6f 6e 74 72 6f 6c 0a |lumns 2.|Control.|
|00002980| 43 61 63 68 65 61 62 6c | 65 0a 55 70 64 61 74 65 |Cacheabl|e.Update|
|00002990| 61 62 6c 65 0a 44 69 73 | 72 75 70 74 69 76 65 0a |able.Dis|ruptive.|
|000029a0| 46 6c 75 73 68 0a 23 45 | 6e 64 54 61 62 6c 65 0a |Flush.#E|ndTable.|
|000029b0| 0a 4e 6f 74 20 61 76 61 | 69 6c 61 62 6c 65 20 66 |.Not ava|ilable f|
|000029c0| 72 6f 6d 20 52 49 53 43 | 20 4f 53 20 33 2e 35 20 |rom RISC| OS 3.5 |
|000029d0| 6f 6e 77 61 72 64 73 2e | 44 49 52 24 48 03 00 00 |onwards.|DIR$H...|
|000029e0| 48 03 00 00 20 2d 00 00 | 46 fd ff ff 7e 77 65 db |H... -..|F...~we.|
|000029f0| c2 02 00 00 13 00 00 00 | 00 00 00 00 21 52 6f 6f |........|....!Roo|
|00002a00| 74 00 00 00 e4 2f 00 00 | 46 ff ff ff cb 17 65 db |t..../..|F.....e.|
|00002a10| 30 02 00 00 13 00 00 00 | 00 00 00 00 53 65 74 46 |0.......|....SetF|
|00002a20| 6f 6e 74 43 6f 6c 6f 75 | 72 73 00 00 14 32 00 00 |ontColou|rs...2..|
|00002a30| 46 ff ff ff 77 02 64 db | 2a 01 00 00 13 00 00 00 |F...w.d.|*.......|
|00002a40| 00 00 00 00 43 6f 6c 6f | 75 72 4e 75 6d 62 65 72 |....Colo|urNumber|
|00002a50| 54 6f 47 43 4f 4c 00 00 | 40 33 00 00 46 ff ff ff |ToGCOL..|@3..F...|
|00002a60| fd 14 64 db aa 00 00 00 | 13 00 00 00 00 00 00 00 |..d.....|........|
|00002a70| 47 43 4f 4c 54 6f 43 6f | 6c 6f 75 72 4e 75 6d 62 |GCOLToCo|lourNumb|
|00002a80| 65 72 00 00 ec 33 00 00 | 46 ff ff ff f7 1e 64 db |er...3..|F.....d.|
|00002a90| 2a 01 00 00 13 00 00 00 | 00 00 00 00 49 6e 76 61 |*.......|....Inva|
|00002aa0| 6c 69 64 61 74 65 43 61 | 63 68 65 00 18 35 00 00 |lidateCa|che..5..|
|00002ab0| 46 ff ff ff 89 2c 64 db | d6 00 00 00 13 00 00 00 |F....,d.|........|
|00002ac0| 00 00 00 00 52 65 74 75 | 72 6e 43 6f 6c 6f 75 72 |....Retu|rnColour|
|00002ad0| 4e 75 6d 62 65 72 00 00 | f0 35 00 00 46 ff ff ff |Number..|.5..F...|
|00002ae0| 81 36 64 db 5a 01 00 00 | 13 00 00 00 00 00 00 00 |.6d.Z...|........|
|00002af0| 52 65 74 75 72 6e 43 6f | 6c 6f 75 72 4e 75 6d 62 |ReturnCo|lourNumb|
|00002b00| 65 72 46 6f 72 4d 6f 64 | 65 00 00 00 4c 37 00 00 |erForMod|e...L7..|
|00002b10| 46 ff ff ff 88 51 64 db | e0 03 00 00 13 00 00 00 |F....Qd.|........|
|00002b20| 00 00 00 00 52 65 74 75 | 72 6e 46 6f 6e 74 43 6f |....Retu|rnFontCo|
|00002b30| 6c 6f 75 72 73 00 00 00 | 2c 3b 00 00 46 ff ff ff |lours...|,;..F...|
|00002b40| 22 61 64 db 49 01 00 00 | 13 00 00 00 00 00 00 00 |"ad.I...|........|
|00002b50| 52 65 74 75 72 6e 47 43 | 4f 4c 00 00 78 3c 00 00 |ReturnGC|OL..x<..|
|00002b60| 46 ff ff ff 5c 70 64 db | 51 01 00 00 13 00 00 00 |F...\pd.|Q.......|
|00002b70| 00 00 00 00 52 65 74 75 | 72 6e 47 43 4f 4c 46 6f |....Retu|rnGCOLFo|
|00002b80| 72 4d 6f 64 65 00 00 00 | cc 3d 00 00 46 ff ff ff |rMode...|.=..F...|
|00002b90| b3 7f 64 db da 00 00 00 | 13 00 00 00 00 00 00 00 |..d.....|........|
|00002ba0| 52 65 74 75 72 6e 4f 70 | 70 43 6f 6c 6f 75 72 4e |ReturnOp|pColourN|
|00002bb0| 75 6d 62 65 72 00 00 00 | a8 3e 00 00 46 ff ff ff |umber...|.>..F...|
|00002bc0| 6c 8b 64 db 73 01 00 00 | 13 00 00 00 00 00 00 00 |l.d.s...|........|
|00002bd0| 52 65 74 75 72 6e 4f 70 | 70 43 6f 6c 6f 75 72 4e |ReturnOp|pColourN|
|00002be0| 75 6d 62 65 72 46 6f 72 | 4d 6f 64 65 00 00 00 00 |umberFor|Mode....|
|00002bf0| 1c 40 00 00 46 ff ff ff | 91 97 64 db c0 00 00 00 |.@..F...|..d.....|
|00002c00| 13 00 00 00 00 00 00 00 | 52 65 74 75 72 6e 4f 70 |........|ReturnOp|
|00002c10| 70 47 43 4f 4c 00 00 00 | dc 40 00 00 46 ff ff ff |pGCOL...|.@..F...|
|00002c20| 5c a3 64 db 55 01 00 00 | 13 00 00 00 00 00 00 00 |\.d.U...|........|
|00002c30| 52 65 74 75 72 6e 4f 70 | 70 47 43 4f 4c 46 6f 72 |ReturnOp|pGCOLFor|
|00002c40| 4d 6f 64 65 00 00 00 00 | 34 42 00 00 46 ff ff ff |Mode....|4B..F...|
|00002c50| 32 ae 64 db 70 01 00 00 | 13 00 00 00 00 00 00 00 |2.d.p...|........|
|00002c60| 53 65 6c 65 63 74 47 43 | 4f 4c 54 61 62 6c 65 00 |SelectGC|OLTable.|
|00002c70| a4 43 00 00 47 ff ff ff | fa 0f bd cd 4b 03 00 00 |.C..G...|....K...|
|00002c80| 13 00 00 00 00 00 00 00 | 53 65 6c 65 63 74 54 61 |........|SelectTa|
|00002c90| 62 6c 65 00 f0 46 00 00 | 46 ff ff ff 98 43 65 db |ble..F..|F....Ce.|
|00002ca0| 5b 01 00 00 13 00 00 00 | 00 00 00 00 53 65 74 47 |[.......|....SetG|
|00002cb0| 43 4f 4c 00 4c 48 00 00 | 46 fd ff ff d6 5c 65 db |COL.LH..|F....\e.|
|00002cc0| 27 01 00 00 13 00 00 00 | 00 00 00 00 47 43 4f 4c |'.......|....GCOL|
|00002cd0| 66 6c 61 67 73 00 00 00 | 74 49 00 00 46 ff ff ff |flags...|tI..F...|
|00002ce0| ad 72 65 db b4 01 00 00 | 13 00 00 00 00 00 00 00 |.re.....|........|
|00002cf0| 53 65 74 4f 70 70 47 43 | 4f 4c 00 00 28 4b 00 00 |SetOppGC|OL..(K..|
|00002d00| 47 fd ff ff 64 a0 d7 07 | c8 00 00 00 13 00 00 00 |G...d...|........|
|00002d10| 00 00 00 00 70 69 78 74 | 72 61 6e 73 00 00 00 00 |....pixt|rans....|
|00002d20| 44 41 54 41 c2 02 00 00 | 43 6f 6c 6f 75 72 54 72 |DATA....|ColourTr|
|00002d30| 61 6e 73 0a 23 50 61 72 | 65 6e 74 20 21 52 6f 6f |ans.#Par|ent !Roo|
|00002d40| 74 0a 23 50 72 65 66 69 | 78 20 43 6f 6c 6f 75 72 |t.#Prefi|x Colour|
|00002d50| 54 72 61 6e 73 5f 0a 23 | 54 61 62 6c 65 20 20 31 |Trans_.#|Table 1|
|00002d60| 38 20 32 37 0a 3c 43 6f | 6c 6f 75 72 4e 75 6d 62 |8 27.<Co|lourNumb|
|00002d70| 65 72 54 6f 47 43 4f 4c | 3e 0a 43 6f 6e 76 65 72 |erToGCOL|>.Conver|
|00002d80| 74 43 49 45 54 6f 52 47 | 42 0a 43 6f 6e 76 65 72 |tCIEToRG|B.Conver|
|00002d90| 74 43 4d 59 4b 54 6f 52 | 47 42 0a 43 6f 6e 76 65 |tCMYKToR|GB.Conve|
|00002da0| 72 74 44 65 76 69 63 65 | 43 6f 6c 6f 75 72 0a 43 |rtDevice|Colour.C|
|00002db0| 6f 6e 76 65 72 74 44 65 | 76 69 63 65 50 61 6c 65 |onvertDe|vicePale|
|00002dc0| 74 74 65 0a 43 6f 6e 76 | 65 72 74 48 53 56 54 6f |tte.Conv|ertHSVTo|
|00002dd0| 52 47 42 0a 43 6f 6e 76 | 65 72 74 52 47 42 54 6f |RGB.Conv|ertRGBTo|
|00002de0| 43 49 45 0a 43 6f 6e 76 | 65 72 74 52 47 42 54 6f |CIE.Conv|ertRGBTo|
|00002df0| 43 4d 59 4b 0a 43 6f 6e | 76 65 72 74 52 47 42 54 |CMYK.Con|vertRGBT|
|00002e00| 6f 48 53 56 0a 3c 47 43 | 4f 4c 54 6f 43 6f 6c 6f |oHSV.<GC|OLToColo|
|00002e10| 75 72 4e 75 6d 62 65 72 | 3e 0a 47 65 6e 65 72 61 |urNumber|>.Genera|
|00002e20| 74 65 54 61 62 6c 65 0a | 3c 49 6e 76 61 6c 69 64 |teTable.|<Invalid|
|00002e30| 61 74 65 43 61 63 68 65 | 3e 0a 4d 69 73 63 4f 70 |ateCache|>.MiscOp|
|00002e40| 0a 52 65 61 64 43 61 6c | 69 62 72 61 74 69 6f 6e |.ReadCal|ibration|
|00002e50| 0a 52 65 61 64 50 61 6c | 65 74 74 65 0a 3c 52 65 |.ReadPal|ette.<Re|
|00002e60| 74 75 72 6e 43 6f 6c 6f | 75 72 4e 75 6d 62 65 72 |turnColo|urNumber|
|00002e70| 3e 0a 3c 52 65 74 75 72 | 6e 43 6f 6c 6f 75 72 4e |>.<Retur|nColourN|
|00002e80| 75 6d 62 65 72 46 6f 72 | 4d 6f 64 65 3e 0a 3c 52 |umberFor|Mode>.<R|
|00002e90| 65 74 75 72 6e 46 6f 6e | 74 43 6f 6c 6f 75 72 73 |eturnFon|tColours|
|00002ea0| 3e 0a 3c 52 65 74 75 72 | 6e 47 43 4f 4c 3e 0a 3c |>.<Retur|nGCOL>.<|
|00002eb0| 52 65 74 75 72 6e 47 43 | 4f 4c 46 6f 72 4d 6f 64 |ReturnGC|OLForMod|
|00002ec0| 65 3e 0a 3c 52 65 74 75 | 72 6e 4f 70 70 43 6f 6c |e>.<Retu|rnOppCol|
|00002ed0| 6f 75 72 4e 75 6d 62 65 | 72 3e 0a 3c 52 65 74 75 |ourNumbe|r>.<Retu|
|00002ee0| 72 6e 4f 70 70 43 6f 6c | 6f 75 72 4e 75 6d 62 65 |rnOppCol|ourNumbe|
|00002ef0| 72 46 6f 72 4d 6f 64 65 | 3e 0a 3c 52 65 74 75 72 |rForMode|>.<Retur|
|00002f00| 6e 4f 70 70 47 43 4f 4c | 3e 0a 3c 52 65 74 75 72 |nOppGCOL|>.<Retur|
|00002f10| 6e 4f 70 70 47 43 4f 4c | 46 6f 72 4d 6f 64 65 3e |nOppGCOL|ForMode>|
|00002f20| 0a 3c 53 65 6c 65 63 74 | 47 43 4f 4c 54 61 62 6c |.<Select|GCOLTabl|
|00002f30| 65 3e 0a 3c 53 65 6c 65 | 63 74 54 61 62 6c 65 3e |e>.<Sele|ctTable>|
|00002f40| 0a 53 65 74 43 61 6c 69 | 62 72 61 74 69 6f 6e 0a |.SetCali|bration.|
|00002f50| 53 65 74 43 6f 6c 6f 75 | 72 0a 3c 53 65 74 46 6f |SetColou|r.<SetFo|
|00002f60| 6e 74 43 6f 6c 6f 75 72 | 73 3e 0a 3c 53 65 74 47 |ntColour|s>.<SetG|
|00002f70| 43 4f 4c 3e 0a 3c 53 65 | 74 4f 70 70 47 43 4f 4c |COL>.<Se|tOppGCOL|
|00002f80| 3e 0a 53 65 74 4f 70 70 | 54 65 78 74 43 6f 6c 6f |>.SetOpp|TextColo|
|00002f90| 75 72 0a 53 65 74 54 65 | 78 74 43 6f 6c 6f 75 72 |ur.SetTe|xtColour|
|00002fa0| 0a 57 72 69 74 65 43 61 | 6c 69 62 72 61 74 69 6f |.WriteCa|libratio|
|00002fb0| 6e 54 6f 46 69 6c 65 0a | 57 72 69 74 65 4c 6f 61 |nToFile.|WriteLoa|
|00002fc0| 64 69 6e 67 73 54 6f 46 | 69 6c 65 0a 57 72 69 74 |dingsToF|ile.Writ|
|00002fd0| 65 50 61 6c 65 74 74 65 | 0a 23 45 6e 64 54 61 62 |ePalette|.#EndTab|
|00002fe0| 6c 65 00 00 44 41 54 41 | 30 02 00 00 43 6f 6c 6f |le..DATA|0...Colo|
|00002ff0| 75 72 54 72 61 6e 73 5f | 53 65 74 46 6f 6e 74 43 |urTrans_|SetFontC|
|00003000| 6f 6c 6f 75 72 73 20 28 | 26 34 30 37 34 46 29 0a |olours (|&4074F).|
|00003010| 23 50 61 72 65 6e 74 20 | 43 6f 6c 6f 75 72 54 72 |#Parent |ColourTr|
|00003020| 61 6e 73 5f 0a 3d 3e 09 | 52 30 20 3d 09 66 6f 6e |ans_.=>.|R0 =.fon|
|00003030| 74 20 68 61 6e 64 6c 65 | 2c 20 6f 72 20 30 20 66 |t handle|, or 0 f|
|00003040| 6f 72 20 63 75 72 72 65 | 6e 74 20 66 6f 6e 74 0a |or curre|nt font.|
|00003050| 09 52 31 20 3d 09 62 61 | 63 6b 67 72 6f 75 6e 64 |.R1 =.ba|ckground|
|00003060| 20 70 61 6c 65 74 74 65 | 20 65 6e 74 72 79 0a 09 | palette| entry..|
|00003070| 52 32 20 3d 09 66 6f 72 | 65 67 72 6f 75 6e 64 20 |R2 =.for|eground |
|00003080| 70 61 6c 65 74 74 65 20 | 65 6e 74 72 79 0a 09 52 |palette |entry..R|
|00003090| 33 20 3d 09 6d 61 78 69 | 6d 75 6d 20 66 6f 72 65 |3 =.maxi|mum fore|
|000030a0| 67 72 6f 75 6e 64 20 63 | 6f 6c 6f 75 72 20 6f 66 |ground c|olour of|
|000030b0| 66 73 65 74 20 28 30 2d | 31 34 29 0a 0a 3c 3d 09 |fset (0-|14)..<=.|
|000030c0| 52 30 20 70 72 65 73 65 | 72 76 65 64 0a 09 52 31 |R0 prese|rved..R1|
|000030d0| 20 3d 09 62 61 63 6b 67 | 72 6f 75 6e 64 20 6c 6f | =.backg|round lo|
|000030e0| 67 69 63 61 6c 20 63 6f | 6c 6f 75 72 20 28 70 72 |gical co|lour (pr|
|000030f0| 65 73 65 72 76 65 64 20 | 69 66 20 69 6e 20 32 35 |eserved |if in 25|
|00003100| 36 20 63 6f 6c 6f 75 72 | 20 6d 6f 64 65 29 0a 09 |6 colour| mode)..|
|00003110| 52 32 20 3d 09 66 6f 72 | 65 67 72 6f 75 6e 64 20 |R2 =.for|eground |
|00003120| 6c 6f 67 69 63 61 6c 20 | 63 6f 6c 6f 75 72 0a 09 |logical |colour..|
|00003130| 52 33 20 3d 09 6d 61 78 | 69 6d 75 6d 20 73 65 6e |R3 =.max|imum sen|
|00003140| 73 69 62 6c 65 20 63 6f | 6c 6f 75 72 20 6f 66 66 |sible co|lour off|
|00003150| 73 65 74 20 28 75 70 20 | 74 6f 20 52 33 20 6f 6e |set (up |to R3 on|
|00003160| 20 65 6e 74 72 79 29 0a | 0a 54 68 69 73 20 63 61 | entry).|.This ca|
|00003170| 6c 6c 2c 20 67 69 76 65 | 6e 20 61 20 70 61 69 72 |ll, give|n a pair|
|00003180| 20 6f 66 20 70 61 6c 65 | 74 74 65 20 65 6e 74 72 | of pale|tte entr|
|00003190| 69 65 73 2c 20 66 69 6e | 64 73 20 74 68 65 20 62 |ies, fin|ds the b|
|000031a0| 65 73 74 20 61 76 61 69 | 6c 61 62 6c 65 20 72 61 |est avai|lable ra|
|000031b0| 6e 67 65 20 6f 66 20 61 | 6e 74 69 2d 61 6c 69 61 |nge of a|nti-alia|
|000031c0| 73 69 6e 67 20 63 6f 6c | 6f 75 72 73 20 69 6e 20 |sing col|ours in |
|000031d0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 70 61 6c 65 |the curr|ent pale|
|000031e0| 74 74 65 2c 20 61 6e 64 | 20 73 65 74 73 20 74 68 |tte, and| sets th|
|000031f0| 65 20 66 6f 6e 74 20 6d | 61 6e 61 67 65 72 20 74 |e font m|anager t|
|00003200| 6f 20 75 73 65 20 74 68 | 65 73 65 20 63 6f 6c 6f |o use th|ese colo|
|00003210| 75 72 73 2e 44 41 54 41 | 2a 01 00 00 43 6f 6c 6f |urs.DATA|*...Colo|
|00003220| 75 72 54 72 61 6e 73 5f | 43 6f 6c 6f 75 72 4e 75 |urTrans_|ColourNu|
|00003230| 6d 62 65 72 54 6f 47 43 | 4f 4c 20 28 26 34 30 37 |mberToGC|OL (&407|
|00003240| 34 44 29 0a 23 50 61 72 | 65 6e 74 20 43 6f 6c 6f |4D).#Par|ent Colo|
|00003250| 75 72 54 72 61 6e 73 5f | 0a 3d 3e 09 52 30 20 3d |urTrans_|.=>.R0 =|
|00003260| 09 63 6f 6c 6f 75 72 20 | 6e 75 6d 62 65 72 0a 3c |.colour |number.<|
|00003270| 3d 09 52 30 20 3d 09 47 | 43 4f 4c 0a 0a 54 68 69 |=.R0 =.G|COL..Thi|
|00003280| 73 20 63 61 6c 6c 20 63 | 68 61 6e 67 65 73 20 74 |s call c|hanges t|
|00003290| 68 65 20 76 61 6c 75 65 | 20 70 61 73 73 65 64 20 |he value| passed |
|000032a0| 66 72 6f 6d 20 61 20 63 | 6f 6c 6f 75 72 20 6e 75 |from a c|olour nu|
|000032b0| 6d 62 65 72 2c 20 74 6f | 20 61 20 47 43 4f 4c 2e |mber, to| a GCOL.|
|000032c0| 0a 0a 55 73 65 20 74 68 | 69 73 20 61 6e 64 20 3c |..Use th|is and <|
|000032d0| 43 6f 6c 6f 75 72 54 72 | 61 6e 73 5f 47 43 4f 4c |ColourTr|ans_GCOL|
|000032e0| 54 6f 43 6f 6c 6f 75 72 | 4e 75 6d 62 65 72 3e 2c |ToColour|Number>,|
|000032f0| 20 6f 6e 6c 79 20 69 6e | 20 32 35 36 20 63 6f 6c | only in| 256 col|
|00003300| 6f 75 72 20 6d 6f 64 65 | 73 2c 20 74 68 65 20 72 |our mode|s, the r|
|00003310| 65 73 75 6c 74 73 20 69 | 6e 20 61 6e 79 20 6f 74 |esults i|n any ot|
|00003320| 68 65 72 20 6d 6f 64 65 | 73 20 77 69 6c 6c 20 62 |her mode|s will b|
|00003330| 65 20 6d 65 61 6e 69 6e | 67 6c 65 73 73 2e 00 00 |e meanin|gless...|
|00003340| 44 41 54 41 aa 00 00 00 | 43 6f 6c 6f 75 72 54 72 |DATA....|ColourTr|
|00003350| 61 6e 73 5f 47 43 4f 4c | 54 6f 43 6f 6c 6f 75 72 |ans_GCOL|ToColour|
|00003360| 4e 75 6d 62 65 72 20 28 | 26 34 30 37 34 43 29 0a |Number (|&4074C).|
|00003370| 23 50 61 72 65 6e 74 20 | 43 6f 6c 6f 75 72 54 72 |#Parent |ColourTr|
|00003380| 61 6e 73 5f 0a 3d 3e 09 | 52 30 20 3d 09 47 43 4f |ans_.=>.|R0 =.GCO|
|00003390| 4c 0a 3c 3d 09 52 30 20 | 3d 09 63 6f 6c 6f 75 72 |L.<=.R0 |=.colour|
|000033a0| 20 6e 75 6d 62 65 72 0a | 0a 54 68 69 73 20 63 61 | number.|.This ca|
|000033b0| 6c 6c 20 63 68 61 6e 67 | 65 73 20 74 68 65 20 76 |ll chang|es the v|
|000033c0| 61 6c 75 65 20 70 61 73 | 73 65 64 20 66 72 6f 6d |alue pas|sed from|
|000033d0| 20 47 43 4f 4c 2c 20 74 | 6f 20 61 20 63 6f 6c 6f | GCOL, t|o a colo|
|000033e0| 75 72 20 6e 75 6d 62 65 | 72 2e 00 00 44 41 54 41 |ur numbe|r...DATA|
|000033f0| 2a 01 00 00 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |*...Colo|urTrans_|
|00003400| 49 6e 76 61 6c 69 64 61 | 74 65 43 61 63 68 65 20 |Invalida|teCache |
|00003410| 28 26 34 30 37 35 30 29 | 0a 23 50 61 72 65 6e 74 |(&40750)|.#Parent|
|00003420| 20 43 6f 6c 6f 75 72 54 | 72 61 6e 73 5f 0a 54 68 | ColourT|rans_.Th|
|00003430| 69 73 20 63 61 6c 6c 20 | 6d 75 73 74 20 62 65 20 |is call |must be |
|00003440| 69 73 73 75 65 64 20 77 | 68 65 6e 65 76 65 72 20 |issued w|henever |
|00003450| 74 68 65 20 70 61 6c 65 | 74 74 65 20 68 61 73 20 |the pale|tte has |
|00003460| 63 68 61 6e 67 65 64 20 | 73 69 6e 63 65 20 43 6f |changed |since Co|
|00003470| 6c 6f 75 72 54 72 61 6e | 73 20 77 61 73 20 6c 61 |lourTran|s was la|
|00003480| 73 74 20 63 61 6c 6c 65 | 64 2e 20 4e 6f 74 65 20 |st calle|d. Note |
|00003490| 74 68 61 74 20 63 6f 6c | 6f 75 72 20 63 68 61 6e |that col|our chan|
|000034a0| 67 65 73 20 64 75 65 20 | 74 6f 20 61 20 6d 6f 64 |ges due |to a mod|
|000034b0| 65 20 63 68 61 6e 67 65 | 20 61 72 65 20 64 65 74 |e change| are det|
|000034c0| 65 63 74 65 64 2e 20 59 | 6f 75 20 6f 6e 6c 79 20 |ected. Y|ou only |
|000034d0| 6e 65 65 64 20 74 6f 20 | 75 73 65 20 74 68 69 73 |need to |use this|
|000034e0| 20 69 66 20 61 6e 6f 74 | 68 65 72 20 6f 66 20 74 | if anot|her of t|
|000034f0| 68 65 20 70 61 6c 65 74 | 74 65 20 63 68 61 6e 67 |he palet|te chang|
|00003500| 65 20 6f 70 65 72 61 74 | 69 6f 6e 73 20 77 61 73 |e operat|ions was|
|00003510| 20 75 73 65 64 2e 00 00 | 44 41 54 41 d6 00 00 00 | used...|DATA....|
|00003520| 43 6f 6c 6f 75 72 54 72 | 61 6e 73 5f 52 65 74 75 |ColourTr|ans_Retu|
|00003530| 72 6e 43 6f 6c 6f 75 72 | 4e 75 6d 62 65 72 20 28 |rnColour|Number (|
|00003540| 26 34 30 37 34 34 29 0a | 23 50 61 72 65 6e 74 20 |&40744).|#Parent |
|00003550| 43 6f 6c 6f 75 72 54 72 | 61 6e 73 5f 0a 3d 3e 09 |ColourTr|ans_.=>.|
|00003560| 52 30 20 3d 09 70 61 6c | 65 74 74 65 20 65 6e 74 |R0 =.pal|ette ent|
|00003570| 72 79 0a 3c 3d 09 52 30 | 20 3d 09 63 6f 6c 6f 75 |ry.<=.R0| =.colou|
|00003580| 72 20 6e 75 6d 62 65 72 | 0a 0a 54 68 69 73 20 63 |r number|..This c|
|00003590| 61 6c 6c 2c 20 67 69 76 | 65 6e 20 61 20 70 61 6c |all, giv|en a pal|
|000035a0| 65 74 74 65 20 65 6e 74 | 72 79 2c 20 72 65 74 75 |ette ent|ry, retu|
|000035b0| 72 6e 73 20 74 68 65 20 | 63 6c 6f 73 65 73 74 20 |rns the |closest |
|000035c0| 63 6f 6c 6f 75 72 20 6e | 75 6d 62 65 72 20 69 6e |colour n|umber in|
|000035d0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6d 6f 64 | the cur|rent mod|
|000035e0| 65 20 61 6e 64 20 70 61 | 6c 65 74 74 65 2e 00 00 |e and pa|lette...|
|000035f0| 44 41 54 41 5a 01 00 00 | 43 6f 6c 6f 75 72 54 72 |DATAZ...|ColourTr|
|00003600| 61 6e 73 5f 52 65 74 75 | 72 6e 43 6f 6c 6f 75 72 |ans_Retu|rnColour|
|00003610| 4e 75 6d 62 65 72 46 6f | 72 4d 6f 64 65 20 28 26 |NumberFo|rMode (&|
|00003620| 34 30 37 34 36 29 0a 3d | 3e 09 52 30 20 3d 09 70 |40746).=|>.R0 =.p|
|00003630| 61 6c 65 74 74 65 20 65 | 6e 74 72 79 0a 09 52 31 |alette e|ntry..R1|
|00003640| 20 3d 09 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 6d | =.desti|nation m|
|00003650| 6f 64 65 2c 20 6f 72 20 | 2d 31 20 66 6f 72 20 63 |ode, or |-1 for c|
|00003660| 75 72 72 65 6e 74 20 6d | 6f 64 65 0a 09 52 32 20 |urrent m|ode..R2 |
|00003670| 3d 09 70 61 6c 65 74 74 | 65 20 70 6f 69 6e 74 65 |=.palett|e pointe|
|00003680| 72 2c 20 6f 72 20 2d 31 | 20 66 6f 72 20 63 75 72 |r, or -1| for cur|
|00003690| 72 65 6e 74 20 70 61 6c | 65 74 74 65 2c 20 6f 72 |rent pal|ette, or|
|000036a0| 20 30 20 66 6f 72 20 64 | 65 66 61 75 6c 74 20 66 | 0 for d|efault f|
|000036b0| 6f 72 20 74 68 65 20 6d | 6f 64 65 0a 0a 3c 3d 09 |or the m|ode..<=.|
|000036c0| 52 30 20 3d 09 63 6f 6c | 6f 75 72 20 6e 75 6d 62 |R0 =.col|our numb|
|000036d0| 65 72 0a 09 52 31 2c 52 | 32 20 70 72 65 73 65 72 |er..R1,R|2 preser|
|000036e0| 76 65 64 20 0a 0a 54 68 | 69 73 20 63 61 6c 6c 2c |ved ..Th|is call,|
|000036f0| 20 67 69 76 65 6e 20 61 | 20 70 61 6c 65 74 74 65 | given a| palette|
|00003700| 20 65 6e 74 72 79 2c 20 | 61 20 64 65 73 74 69 6e | entry, |a destin|
|00003710| 61 74 69 6f 6e 20 6d 6f | 64 65 20 61 6e 64 20 70 |ation mo|de and p|
|00003720| 61 6c 65 74 74 65 2c 20 | 72 65 74 75 72 6e 73 20 |alette, |returns |
|00003730| 74 68 65 20 63 6c 6f 73 | 65 73 74 20 63 6f 6c 6f |the clos|est colo|
|00003740| 75 72 20 6e 75 6d 62 65 | 72 2e 00 00 44 41 54 41 |ur numbe|r...DATA|
|00003750| e0 03 00 00 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |....Colo|urTrans_|
|00003760| 52 65 74 75 72 6e 46 6f | 6e 74 43 6f 6c 6f 75 72 |ReturnFo|ntColour|
|00003770| 73 20 28 26 34 30 37 34 | 45 29 0a 23 50 61 72 65 |s (&4074|E).#Pare|
|00003780| 6e 74 20 43 6f 6c 6f 75 | 72 54 72 61 6e 73 5f 0a |nt Colou|rTrans_.|
|00003790| 3d 3e 09 52 30 20 3d 09 | 66 6f 6e 74 20 68 61 6e |=>.R0 =.|font han|
|000037a0| 64 6c 65 2c 20 6f 72 20 | 30 20 66 6f 72 20 63 75 |dle, or |0 for cu|
|000037b0| 72 72 65 6e 74 20 66 6f | 6e 74 0a 09 52 31 20 3d |rrent fo|nt..R1 =|
|000037c0| 09 62 61 63 6b 67 6f 72 | 75 6e 64 20 70 61 6c 65 |.backgor|und pale|
|000037d0| 74 74 65 20 65 6e 74 72 | 79 0a 09 52 32 20 3d 09 |tte entr|y..R2 =.|
|000037e0| 66 6f 72 65 67 72 6f 75 | 6e 64 20 70 61 6c 65 74 |foregrou|nd palet|
|000037f0| 74 65 20 65 6e 74 72 79 | 0a 09 52 33 20 3d 09 6d |te entry|..R3 =.m|
|00003800| 61 78 69 6d 75 6d 20 66 | 6f 72 65 67 72 6f 75 6e |aximum f|oregroun|
|00003810| 64 20 63 6f 6c 6f 75 72 | 20 6f 66 66 73 65 74 20 |d colour| offset |
|00003820| 28 30 2d 31 34 29 0a 0a | 3c 3d 09 52 30 20 70 72 |(0-14)..|<=.R0 pr|
|00003830| 65 73 65 72 76 65 64 0a | 09 52 31 20 3d 09 62 61 |eserved.|.R1 =.ba|
|00003840| 63 6b 67 72 6f 75 6e 64 | 20 6c 6f 67 69 63 61 6c |ckground| logical|
|00003850| 20 63 6f 6c 6f 75 72 20 | 28 70 72 65 73 65 72 76 | colour |(preserv|
|00003860| 65 64 20 69 66 20 69 6e | 20 32 35 36 20 63 6f 6c |ed if in| 256 col|
|00003870| 6f 75 72 20 6d 6f 64 65 | 29 0a 09 52 32 20 3d 09 |our mode|)..R2 =.|
|00003880| 66 6f 72 65 67 72 6f 75 | 6e 64 20 6c 6f 67 69 63 |foregrou|nd logic|
|00003890| 61 6c 20 63 6f 6c 6f 75 | 72 0a 09 52 33 20 3d 09 |al colou|r..R3 =.|
|000038a0| 6d 61 78 69 6d 75 6d 20 | 73 65 6e 73 69 62 6c 65 |maximum |sensible|
|000038b0| 20 63 6f 6c 6f 75 72 20 | 6f 66 66 73 65 74 20 28 | colour |offset (|
|000038c0| 75 70 20 74 6f 20 52 33 | 20 6f 6e 20 65 6e 74 72 |up to R3| on entr|
|000038d0| 79 29 0a 0a 54 68 69 73 | 20 63 61 6c 6c 2c 20 67 |y)..This| call, g|
|000038e0| 69 76 65 6e 20 62 61 63 | 6b 67 72 6f 75 6e 64 20 |iven bac|kground |
|000038f0| 61 6e 64 20 66 6f 72 65 | 67 72 6f 75 6e 64 20 63 |and fore|ground c|
|00003900| 6f 6c 6f 75 72 73 20 61 | 6e 64 20 74 68 65 20 6e |olours a|nd the n|
|00003910| 75 6d 62 65 72 20 6f 66 | 20 61 6e 74 69 20 61 6c |umber of| anti al|
|00003920| 69 61 73 69 6e 67 20 63 | 6f 6c 6f 75 72 73 20 64 |iasing c|olours d|
|00003930| 65 73 69 72 65 64 2c 20 | 66 69 6e 64 73 20 74 68 |esired, |finds th|
|00003940| 65 20 6d 61 78 69 6d 75 | 6d 20 72 61 6e 67 65 20 |e maximu|m range |
|00003950| 6f 66 20 63 6f 6c 6f 75 | 72 20 74 68 61 74 20 63 |of colou|r that c|
|00003960| 61 6e 20 73 65 6e 73 69 | 62 6c 79 20 62 65 20 75 |an sensi|bly be u|
|00003970| 73 65 64 2e 20 53 6f 20 | 66 6f 72 20 74 68 65 20 |sed. So |for the |
|00003980| 67 69 76 65 6e 20 70 61 | 6c 65 74 74 65 20 65 6e |given pa|lette en|
|00003990| 74 72 69 65 73 2c 20 69 | 74 20 66 69 6e 64 73 20 |tries, i|t finds |
|000039a0| 74 68 65 20 62 65 73 74 | 20 66 69 74 20 69 6e 20 |the best| fit in |
|000039b0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 70 61 6c 65 |the curr|ent pale|
|000039c0| 74 74 65 2c 20 61 6e 64 | 20 74 68 65 6e 20 69 6e |tte, and| then in|
|000039d0| 73 70 65 63 74 73 20 74 | 68 65 20 6f 74 68 65 72 |spects t|he other|
|000039e0| 20 61 76 61 69 6c 61 62 | 6c 65 20 63 6f 6c 6f 75 | availab|le colou|
|000039f0| 72 73 20 74 6f 20 64 65 | 64 75 63 65 20 74 68 65 |rs to de|duce the|
|00003a00| 20 6d 61 78 69 6d 75 6d | 20 70 6f 73 73 69 62 6c | maximum| possibl|
|00003a10| 65 20 61 6d 6f 75 6e 74 | 20 6f 66 20 61 6e 74 69 |e amount| of anti|
|00003a20| 2d 61 6c 69 61 73 69 6e | 67 20 75 70 20 74 6f 20 |-aliasin|g up to |
|00003a30| 74 68 65 20 6c 69 6d 69 | 74 20 69 6e 20 52 33 2e |the limi|t in R3.|
|00003a40| 0a 0a 49 66 20 61 6e 74 | 69 2d 61 6c 69 61 73 69 |..If ant|i-aliasi|
|00003a50| 6e 67 20 69 73 20 64 65 | 73 69 72 61 62 6c 65 2c |ng is de|sirable,|
|00003a60| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 73 65 74 20 | you sho|uld set |
|00003a70| 52 33 3d 31 34 20 6f 6e | 20 65 6e 74 72 79 3b 20 |R3=14 on| entry; |
|00003a80| 6f 74 68 65 72 77 69 73 | 65 20 73 65 74 20 52 33 |otherwis|e set R3|
|00003a90| 3d 30 20 66 6f 72 20 6d | 6f 6e 6f 63 68 72 6f 6d |=0 for m|onochrom|
|00003aa0| 65 2e 0a 0a 54 68 65 20 | 76 61 6c 75 65 73 20 69 |e...The |values i|
|00003ab0| 6e 20 52 31 2d 52 33 20 | 6f 6e 20 65 78 69 74 20 |n R1-R3 |on exit |
|00003ac0| 61 72 65 20 73 75 69 74 | 61 62 6c 65 20 66 6f 72 |are suit|able for|
|00003ad0| 20 70 61 73 73 69 6e 67 | 20 74 6f 20 3c 46 6f 6e | passing| to <Fon|
|00003ae0| 74 5f 53 65 74 46 6f 6e | 74 43 6f 6c 6f 75 72 73 |t_SetFon|tColours|
|00003af0| 3e 2c 20 6f 72 20 69 6e | 63 6c 75 64 69 6e 67 20 |>, or in|cluding |
|00003b00| 69 6e 20 61 20 66 6f 6e | 74 20 73 74 72 69 6e 67 |in a fon|t string|
|00003b10| 20 69 6e 20 61 20 63 6f | 6d 6d 61 6e 64 20 28 31 | in a co|mmand (1|
|00003b20| 38 29 20 73 65 71 75 65 | 6e 63 65 2e 44 41 54 41 |8) seque|nce.DATA|
|00003b30| 49 01 00 00 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |I...Colo|urTrans_|
|00003b40| 52 65 74 75 72 6e 47 43 | 4f 4c 20 28 26 34 30 37 |ReturnGC|OL (&407|
|00003b50| 34 32 29 0a 23 50 61 72 | 65 6e 74 20 43 6f 6c 6f |42).#Par|ent Colo|
|00003b60| 75 72 54 72 61 6e 73 5f | 0a 3d 3e 09 52 30 20 3d |urTrans_|.=>.R0 =|
|00003b70| 09 50 61 6c 65 74 74 65 | 20 65 6e 74 72 79 0a 3c |.Palette| entry.<|
|00003b80| 3d 09 52 30 20 3d 09 47 | 43 4f 4c 0a 0a 54 68 69 |=.R0 =.G|COL..Thi|
|00003b90| 73 20 63 61 6c 6c 2c 20 | 67 69 76 65 6e 20 61 20 |s call, |given a |
|00003ba0| 70 61 6c 65 74 74 65 20 | 65 6e 74 72 79 2c 20 72 |palette |entry, r|
|00003bb0| 65 74 75 72 6e 73 20 74 | 68 65 20 63 6c 6f 73 65 |eturns t|he close|
|00003bc0| 73 74 20 47 43 4f 4c 20 | 69 6e 20 74 68 65 20 63 |st GCOL |in the c|
|00003bd0| 75 72 72 65 6e 74 20 6d | 6f 64 65 20 61 6e 64 20 |urrent m|ode and |
|00003be0| 70 61 6c 65 74 74 65 2e | 20 49 74 27 73 20 65 71 |palette.| It's eq|
|00003bf0| 75 69 76 61 6c 65 6e 74 | 20 74 6f 20 3c 43 6f 6c |uivalent| to <Col|
|00003c00| 6f 75 72 54 72 61 6e 73 | 5f 52 65 74 75 72 6e 47 |ourTrans|_ReturnG|
|00003c10| 43 4f 4c 46 6f 72 4d 6f | 64 65 3e 20 66 6f 72 20 |COLForMo|de> for |
|00003c20| 74 68 65 20 67 69 76 65 | 6e 20 70 61 6c 65 74 74 |the give|n palett|
|00003c30| 65 20 65 6e 74 72 79 2c | 20 77 69 74 68 20 70 61 |e entry,| with pa|
|00003c40| 72 61 6d 65 74 65 72 73 | 20 6f 66 20 2d 31 20 66 |rameters| of -1 f|
|00003c50| 6f 72 20 62 6f 74 68 20 | 74 68 65 20 6d 6f 64 65 |or both |the mode|
|00003c60| 20 61 6e 64 20 70 61 6c | 65 74 74 65 20 70 6f 69 | and pal|ette poi|
|00003c70| 6e 74 65 72 2e 00 00 00 | 44 41 54 41 51 01 00 00 |nter....|DATAQ...|
|00003c80| 43 6f 6c 6f 75 72 54 72 | 61 6e 73 5f 52 65 74 75 |ColourTr|ans_Retu|
|00003c90| 72 6e 47 43 4f 4c 46 6f | 72 4d 6f 64 65 20 28 26 |rnGCOLFo|rMode (&|
|00003ca0| 34 30 37 34 35 29 0a 23 | 50 61 72 65 6e 74 20 43 |40745).#|Parent C|
|00003cb0| 6f 6c 6f 75 72 54 72 61 | 6e 73 5f 0a 3d 3e 09 52 |olourTra|ns_.=>.R|
|00003cc0| 30 20 3d 09 50 61 6c 65 | 74 74 65 20 65 6e 74 72 |0 =.Pale|tte entr|
|00003cd0| 79 0a 09 52 31 20 3d 09 | 64 65 73 74 69 6e 61 74 |y..R1 =.|destinat|
|00003ce0| 69 6f 6e 20 6d 6f 64 65 | 2c 20 2d 31 20 66 6f 72 |ion mode|, -1 for|
|00003cf0| 20 63 75 72 72 65 6e 74 | 20 6d 6f 64 65 0a 09 52 | current| mode..R|
|00003d00| 32 20 3d 09 70 61 6c 65 | 74 74 65 20 70 6f 69 6e |2 =.pale|tte poin|
|00003d10| 74 65 72 2c 20 6f 72 20 | 2d 31 20 66 6f 72 20 63 |ter, or |-1 for c|
|00003d20| 75 72 72 65 6e 74 20 70 | 61 6c 65 74 74 65 2c 20 |urrent p|alette, |
|00003d30| 6f 72 20 30 20 66 6f 72 | 20 64 65 66 61 75 6c 74 |or 0 for| default|
|00003d40| 20 66 6f 72 20 74 68 65 | 20 6d 6f 64 65 0a 0a 3c | for the| mode..<|
|00003d50| 3d 09 52 30 20 3d 09 47 | 43 4f 4c 0a 09 52 31 2c |=.R0 =.G|COL..R1,|
|00003d60| 52 32 20 70 72 65 73 65 | 72 76 65 64 0a 0a 54 68 |R2 prese|rved..Th|
|00003d70| 69 73 20 63 61 6c 6c 2c | 20 67 69 76 65 6e 20 61 |is call,| given a|
|00003d80| 20 70 61 6c 65 74 74 65 | 20 65 6e 74 72 79 2c 20 | palette| entry, |
|00003d90| 61 20 64 65 73 74 69 6e | 61 74 69 6f 6e 20 6d 6f |a destin|ation mo|
|00003da0| 64 65 20 61 6e 64 20 70 | 61 6c 65 74 74 65 2c 20 |de and p|alette, |
|00003db0| 72 65 74 75 72 6e 73 20 | 74 68 65 20 63 6c 6f 73 |returns |the clos|
|00003dc0| 65 73 74 20 47 43 4f 4c | 2e 00 00 00 44 41 54 41 |est GCOL|....DATA|
|00003dd0| da 00 00 00 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |....Colo|urTrans_|
|00003de0| 52 65 74 75 72 6e 4f 70 | 70 43 6f 6c 6f 75 72 4e |ReturnOp|pColourN|
|00003df0| 75 6d 62 65 72 20 28 26 | 34 30 37 34 39 29 0a 23 |umber (&|40749).#|
|00003e00| 50 61 72 65 6e 74 20 43 | 6f 6c 6f 75 72 54 72 61 |Parent C|olourTra|
|00003e10| 6e 73 5f 0a 3d 3e 09 52 | 30 20 3d 09 70 61 6c 65 |ns_.=>.R|0 =.pale|
|00003e20| 74 74 65 20 65 6e 74 72 | 79 0a 3c 3d 09 52 30 20 |tte entr|y.<=.R0 |
|00003e30| 3d 09 63 6f 6c 6f 75 72 | 20 6e 75 6d 62 65 72 0a |=.colour| number.|
|00003e40| 0a 54 68 69 73 20 63 61 | 6c 6c 2c 20 67 69 76 65 |.This ca|ll, give|
|00003e50| 6e 20 61 20 70 61 6c 65 | 74 74 65 20 65 6e 74 72 |n a pale|tte entr|
|00003e60| 79 2c 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 66 |y, retur|ns the f|
|00003e70| 75 72 74 68 65 73 74 20 | 63 6f 6c 6f 75 72 20 6e |urthest |colour n|
|00003e80| 75 6d 62 65 72 20 69 6e | 20 74 68 65 20 63 75 72 |umber in| the cur|
|00003e90| 72 65 6e 74 20 6d 6f 64 | 65 20 61 6e 64 20 70 61 |rent mod|e and pa|
|00003ea0| 6c 65 74 74 65 2e 00 00 | 44 41 54 41 73 01 00 00 |lette...|DATAs...|
|00003eb0| 43 6f 6c 6f 75 72 54 72 | 61 6e 73 5f 52 65 74 75 |ColourTr|ans_Retu|
|00003ec0| 72 6e 4f 70 70 43 6f 6c | 6f 75 72 4e 75 6d 62 65 |rnOppCol|ourNumbe|
|00003ed0| 72 46 6f 72 4d 6f 64 65 | 20 28 26 34 30 37 34 42 |rForMode| (&4074B|
|00003ee0| 29 0a 23 50 61 72 65 6e | 74 20 43 6f 6c 6f 75 72 |).#Paren|t Colour|
|00003ef0| 54 72 61 6e 73 5f 0a 3d | 3e 09 52 30 20 3d 09 70 |Trans_.=|>.R0 =.p|
|00003f00| 61 6c 65 74 74 65 20 65 | 6e 74 72 79 0a 09 52 31 |alette e|ntry..R1|
|00003f10| 20 3d 09 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 6d | =.desti|nation m|
|00003f20| 6f 64 65 2c 20 6f 72 20 | 2d 31 20 66 6f 72 20 63 |ode, or |-1 for c|
|00003f30| 75 72 72 65 6e 74 20 6d | 6f 64 65 0a 09 52 32 20 |urrent m|ode..R2 |
|00003f40| 3d 09 70 61 6c 65 74 74 | 65 20 70 6f 69 6e 74 65 |=.palett|e pointe|
|00003f50| 72 2c 20 6f 72 20 2d 31 | 20 66 6f 72 20 63 75 72 |r, or -1| for cur|
|00003f60| 72 65 6e 74 20 70 61 6c | 65 74 74 65 2c 20 6f 72 |rent pal|ette, or|
|00003f70| 20 30 20 66 6f 72 20 64 | 65 66 61 75 6c 74 20 66 | 0 for d|efault f|
|00003f80| 6f 72 20 74 68 65 20 6d | 6f 64 65 0a 0a 3c 3d 09 |or the m|ode..<=.|
|00003f90| 52 30 20 3d 09 63 6f 6c | 6f 75 72 20 6e 75 6d 62 |R0 =.col|our numb|
|00003fa0| 65 72 0a 09 52 31 2c 52 | 32 20 70 72 65 73 65 72 |er..R1,R|2 preser|
|00003fb0| 76 65 64 20 0a 0a 54 68 | 69 73 20 63 61 6c 6c 2c |ved ..Th|is call,|
|00003fc0| 20 67 69 76 65 6e 20 61 | 20 70 61 6c 65 74 74 65 | given a| palette|
|00003fd0| 20 65 6e 74 72 79 2c 20 | 61 20 64 65 73 74 69 6e | entry, |a destin|
|00003fe0| 61 74 69 6f 6e 20 6d 6f | 64 65 20 61 6e 64 20 70 |ation mo|de and p|
|00003ff0| 61 6c 65 74 74 65 2c 20 | 72 65 74 75 72 6e 73 20 |alette, |returns |
|00004000| 74 68 65 20 66 75 72 74 | 68 65 73 74 20 63 6f 6c |the furt|hest col|
|00004010| 6f 75 72 20 6e 75 6d 62 | 65 72 2e 00 44 41 54 41 |our numb|er..DATA|
|00004020| c0 00 00 00 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |....Colo|urTrans_|
|00004030| 52 65 74 75 72 6e 4f 70 | 70 47 43 4f 4c 20 28 26 |ReturnOp|pGCOL (&|
|00004040| 34 30 37 34 37 29 0a 23 | 50 61 72 65 6e 74 20 43 |40747).#|Parent C|
|00004050| 6f 6c 6f 75 72 54 72 61 | 6e 73 5f 0a 3d 3e 09 52 |olourTra|ns_.=>.R|
|00004060| 30 20 3d 09 70 61 6c 65 | 74 74 65 20 65 6e 74 72 |0 =.pale|tte entr|
|00004070| 79 0a 3c 3d 09 52 30 20 | 3d 09 47 43 4f 4c 0a 0a |y.<=.R0 |=.GCOL..|
|00004080| 54 68 69 73 20 63 61 6c | 6c 2c 20 67 69 76 65 6e |This cal|l, given|
|00004090| 20 61 20 70 61 6c 65 74 | 74 65 20 65 6e 74 72 79 | a palet|te entry|
|000040a0| 2c 20 72 65 74 75 72 6e | 73 20 74 68 65 20 66 75 |, return|s the fu|
|000040b0| 72 74 68 65 73 74 20 47 | 43 4f 4c 20 69 6e 20 74 |rthest G|COL in t|
|000040c0| 68 65 20 63 75 72 72 65 | 6e 74 20 6d 6f 64 65 20 |he curre|nt mode |
|000040d0| 61 6e 64 20 70 61 6c 65 | 74 74 65 2e 44 41 54 41 |and pale|tte.DATA|
|000040e0| 55 01 00 00 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |U...Colo|urTrans_|
|000040f0| 52 65 74 75 72 6e 4f 70 | 70 47 43 4f 4c 46 6f 72 |ReturnOp|pGCOLFor|
|00004100| 4d 6f 64 65 20 28 26 34 | 30 37 34 41 29 0a 23 50 |Mode (&4|074A).#P|
|00004110| 61 72 65 6e 74 20 43 6f | 6c 6f 75 72 54 72 61 6e |arent Co|lourTran|
|00004120| 73 5f 0a 3d 3e 09 52 30 | 20 3d 09 50 61 6c 65 74 |s_.=>.R0| =.Palet|
|00004130| 74 65 20 65 6e 74 72 79 | 0a 09 52 31 20 3d 09 64 |te entry|..R1 =.d|
|00004140| 65 73 74 69 6e 61 74 69 | 6f 6e 20 6d 6f 64 65 2c |estinati|on mode,|
|00004150| 20 2d 31 20 66 6f 72 20 | 63 75 72 72 65 6e 74 20 | -1 for |current |
|00004160| 6d 6f 64 65 0a 09 52 32 | 20 3d 09 70 61 6c 65 74 |mode..R2| =.palet|
|00004170| 74 65 20 70 6f 69 6e 74 | 65 72 2c 20 6f 72 20 2d |te point|er, or -|
|00004180| 31 20 66 6f 72 20 63 75 | 72 72 65 6e 74 20 70 61 |1 for cu|rrent pa|
|00004190| 6c 65 74 74 65 2c 20 6f | 72 20 30 20 66 6f 72 20 |lette, o|r 0 for |
|000041a0| 64 65 66 61 75 6c 74 20 | 66 6f 72 20 74 68 65 20 |default |for the |
|000041b0| 6d 6f 64 65 0a 0a 3c 3d | 09 52 30 20 3d 09 47 43 |mode..<=|.R0 =.GC|
|000041c0| 4f 4c 0a 09 52 31 2c 52 | 32 20 70 72 65 73 65 72 |OL..R1,R|2 preser|
|000041d0| 76 65 64 0a 0a 54 68 69 | 73 20 63 61 6c 6c 2c 20 |ved..Thi|s call, |
|000041e0| 67 69 76 65 6e 20 61 20 | 70 61 6c 65 74 74 65 20 |given a |palette |
|000041f0| 65 6e 74 72 79 2c 20 61 | 20 64 65 73 74 69 6e 61 |entry, a| destina|
|00004200| 74 69 6f 6e 20 6d 6f 64 | 65 20 61 6e 64 20 70 61 |tion mod|e and pa|
|00004210| 6c 65 74 74 65 2c 20 72 | 65 74 75 72 6e 73 20 74 |lette, r|eturns t|
|00004220| 68 65 20 66 75 72 74 68 | 65 73 74 20 47 43 4f 4c |he furth|est GCOL|
|00004230| 2e 00 00 00 44 41 54 41 | 70 01 00 00 43 6f 6c 6f |....DATA|p...Colo|
|00004240| 75 72 54 72 61 6e 73 5f | 53 65 6c 65 63 74 47 43 |urTrans_|SelectGC|
|00004250| 4f 4c 54 61 62 6c 65 20 | 28 26 34 30 37 34 31 29 |OLTable |(&40741)|
|00004260| 0a 23 50 61 72 65 6e 74 | 20 43 6f 6c 6f 75 72 54 |.#Parent| ColourT|
|00004270| 72 61 6e 73 5f 0a 54 68 | 65 20 72 65 67 69 73 74 |rans_.Th|e regist|
|00004280| 65 72 73 20 66 6f 72 20 | 74 68 69 73 20 63 61 6c |ers for |this cal|
|00004290| 6c 20 61 72 65 20 75 73 | 65 64 20 6a 75 73 74 20 |l are us|ed just |
|000042a0| 61 73 20 69 6e 20 3c 43 | 6f 6c 6f 75 72 54 72 61 |as in <C|olourTra|
|000042b0| 6e 73 5f 53 65 6c 65 63 | 74 54 61 62 6c 65 3e 2e |ns_Selec|tTable>.|
|000042c0| 0a 0a 54 68 69 73 20 63 | 61 6c 6c 2c 20 67 69 76 |..This c|all, giv|
|000042d0| 65 6e 20 61 20 73 6f 75 | 72 63 65 20 6d 6f 64 65 |en a sou|rce mode|
|000042e0| 20 61 6e 64 20 70 61 6c | 65 74 74 65 2c 20 61 20 | and pal|ette, a |
|000042f0| 64 65 73 74 69 6e 61 74 | 69 6f 6e 20 6d 6f 64 65 |destinat|ion mode|
|00004300| 20 61 6e 64 20 70 61 6c | 65 74 74 65 2c 20 61 6e | and pal|ette, an|
|00004310| 64 20 61 20 62 75 66 66 | 65 72 2c 20 73 65 74 73 |d a buff|er, sets|
|00004320| 20 75 70 20 61 20 6c 69 | 73 74 20 6f 66 20 47 43 | up a li|st of GC|
|00004330| 4f 4c 73 20 69 6e 20 74 | 68 65 20 62 75 66 66 65 |OLs in t|he buffe|
|00004340| 72 2e 20 54 68 65 20 76 | 61 6c 75 65 73 20 63 61 |r. The v|alues ca|
|00004350| 6e 20 73 75 62 73 65 71 | 75 65 6e 74 6c 79 20 62 |n subseq|uently b|
|00004360| 65 20 75 73 65 64 20 62 | 79 20 70 61 73 73 69 6e |e used b|y passin|
|00004370| 67 20 74 68 65 6d 20 74 | 6f 20 3c 47 43 4f 4c 3d |g them t|o <GCOL=|
|00004380| 3e 42 41 53 49 43 3a 47 | 43 4f 4c 3e 20 61 6e 64 |>BASIC:G|COL> and|
|00004390| 20 3c 54 49 4e 54 3d 3e | 42 41 53 49 43 3a 54 49 | <TINT=>|BASIC:TI|
|000043a0| 4e 54 3e 2e 44 41 54 41 | 4b 03 00 00 43 6f 6c 6f |NT>.DATA|K...Colo|
|000043b0| 75 72 54 72 61 6e 73 5f | 53 65 6c 65 63 74 54 61 |urTrans_|SelectTa|
|000043c0| 62 6c 65 20 28 26 34 30 | 37 34 30 29 0a 23 50 61 |ble (&40|740).#Pa|
|000043d0| 72 65 6e 74 20 43 6f 6c | 6f 75 72 54 72 61 6e 73 |rent Col|ourTrans|
|000043e0| 5f 0a 3d 3e 09 52 30 20 | 3d 09 73 6f 75 72 63 65 |_.=>.R0 |=.source|
|000043f0| 20 6d 6f 64 65 20 6f 72 | 20 28 69 66 20 3e 3d 20 | mode or| (if >= |
|00004400| 32 35 36 29 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |256) poi|nter to |
|00004410| 73 70 72 69 74 65 20 61 | 72 65 61 0a 09 52 31 20 |sprite a|rea..R1 |
|00004420| 3d 09 73 6f 75 72 63 65 | 20 70 61 6c 65 74 74 65 |=.source| palette|
|00004430| 20 70 6f 69 6e 74 65 72 | 20 6f 72 20 28 69 66 20 | pointer| or (if |
|00004440| 3e 3d 20 32 35 36 29 20 | 70 6f 69 6e 74 65 72 20 |>= 256) |pointer |
|00004450| 74 6f 20 73 70 72 69 74 | 65 20 6e 61 6d 65 2f 73 |to sprit|e name/s|
|00004460| 70 72 69 74 65 20 69 6e | 20 61 72 65 61 20 70 6f |prite in| area po|
|00004470| 69 6e 74 65 64 20 74 6f | 20 62 79 20 52 30 20 28 |inted to| by R0 (|
|00004480| 61 73 20 73 70 65 63 69 | 66 69 65 64 20 62 79 20 |as speci|fied by |
|00004490| 52 35 29 0a 09 52 32 20 | 3d 09 64 65 73 74 69 6e |R5)..R2 |=.destin|
|000044a0| 61 74 69 6f 6e 20 6d 6f | 64 65 2c 20 6f 72 20 2d |ation mo|de, or -|
|000044b0| 31 20 66 6f 72 20 63 75 | 72 72 65 6e 74 20 6d 6f |1 for cu|rrent mo|
|000044c0| 64 65 0a 09 52 33 20 3d | 09 64 65 73 74 69 6e 61 |de..R3 =|.destina|
|000044d0| 74 69 6f 6e 20 70 61 6c | 65 74 74 65 20 70 6f 69 |tion pal|ette poi|
|000044e0| 6e 74 65 72 2c 20 6f 72 | 20 2d 31 20 66 6f 72 20 |nter, or| -1 for |
|000044f0| 63 75 72 72 65 6e 74 20 | 70 61 6c 65 74 74 65 2c |current |palette,|
|00004500| 20 6f 72 20 30 20 66 6f | 72 20 64 65 66 61 75 6c | or 0 fo|r defaul|
|00004510| 74 20 66 6f 72 20 74 68 | 65 20 6d 6f 64 65 0a 09 |t for th|e mode..|
|00004520| 52 34 20 3d 09 70 6f 69 | 6e 74 65 72 20 74 6f 20 |R4 =.poi|nter to |
|00004530| 3c 62 75 66 66 65 72 3d | 3e 63 6f 6c 6f 75 72 74 |<buffer=|>colourt|
|00004540| 72 61 6e 73 5f 70 69 78 | 74 72 61 6e 73 3e 0a 09 |rans_pix|trans>..|
|00004550| 52 35 20 3d 09 3c 66 6c | 61 67 73 3d 3e 2e 66 6c |R5 =.<fl|ags=>.fl|
|00004560| 61 67 73 3e 20 28 6f 6e | 6c 79 20 75 73 65 64 20 |ags> (on|ly used |
|00004570| 69 66 20 52 30 20 3e 3d | 20 32 35 36 29 0a 0a 3c |if R0 >=| 256)..<|
|00004580| 3d 09 41 6c 6c 20 72 65 | 67 69 73 74 65 72 73 20 |=.All re|gisters |
|00004590| 70 72 65 73 65 72 76 65 | 64 0a 0a 54 68 69 73 20 |preserve|d..This |
|000045a0| 63 61 6c 6c 20 73 65 74 | 73 20 75 70 20 61 20 74 |call set|s up a t|
|000045b0| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 74 61 62 6c 65 |ranslati|on table|
|000045c0| 20 69 6e 20 61 20 62 75 | 66 66 65 72 20 2d 20 74 | in a bu|ffer - t|
|000045d0| 68 61 74 20 69 73 2c 20 | 61 20 73 65 74 20 6f 66 |hat is, |a set of|
|000045e0| 20 63 6f 6c 6f 75 72 20 | 6e 75 6d 62 65 72 73 20 | colour |numbers |
|000045f0| 61 73 20 75 73 65 64 20 | 62 79 20 73 63 61 6c 65 |as used |by scale|
|00004600| 64 20 73 70 72 69 74 65 | 20 70 6c 6f 74 74 69 6e |d sprite| plottin|
|00004610| 67 2e 0a 23 53 75 62 70 | 61 67 65 20 66 6c 61 67 |g..#Subp|age flag|
|00004620| 73 0a 53 65 6c 65 63 74 | 20 54 61 62 6c 65 20 66 |s.Select| Table f|
|00004630| 6c 61 67 73 0a 42 69 74 | 09 4d 65 61 6e 69 6e 67 |lags.Bit|.Meaning|
|00004640| 20 69 66 20 73 65 74 0a | 23 4c 69 6e 65 0a 30 09 | if set.|#Line.0.|
|00004650| 52 31 20 3d 09 70 6f 69 | 6e 74 65 72 20 74 6f 20 |R1 =.poi|nter to |
|00004660| 73 70 72 69 74 65 20 28 | 6f 74 68 65 72 77 69 73 |sprite (|otherwis|
|00004670| 65 20 73 70 72 69 74 65 | 20 6e 61 6d 65 29 0a 31 |e sprite| name).1|
|00004680| 09 75 73 65 20 63 75 72 | 72 65 6e 74 20 70 61 6c |.use cur|rent pal|
|00004690| 65 74 74 65 20 69 66 20 | 73 70 72 69 74 65 20 64 |ette if |sprite d|
|000046a0| 6f 65 73 6e 27 74 20 68 | 61 76 65 20 6f 6e 65 20 |oesn't h|ave one |
|000046b0| 28 6f 74 68 65 72 77 69 | 73 65 20 64 65 66 61 75 |(otherwi|se defau|
|000046c0| 6c 74 20 70 61 6c 65 74 | 74 65 29 0a 6f 74 68 65 |lt palet|te).othe|
|000046d0| 72 20 62 69 74 73 20 72 | 65 73 65 72 76 65 64 20 |r bits r|eserved |
|000046e0| 28 6d 75 73 74 20 62 65 | 20 7a 65 72 6f 29 0a 00 |(must be| zero)..|
|000046f0| 44 41 54 41 5b 01 00 00 | 43 6f 6c 6f 75 72 54 72 |DATA[...|ColourTr|
|00004700| 61 6e 73 5f 53 65 74 47 | 43 4f 4c 20 28 26 34 30 |ans_SetG|COL (&40|
|00004710| 37 34 33 29 0a 23 50 61 | 72 65 6e 74 20 43 6f 6c |743).#Pa|rent Col|
|00004720| 6f 75 72 54 72 61 6e 73 | 5f 0a 3d 3e 09 52 30 20 |ourTrans|_.=>.R0 |
|00004730| 3d 09 50 61 6c 65 74 74 | 65 20 65 6e 74 72 79 0a |=.Palett|e entry.|
|00004740| 09 52 33 20 3d 09 3c 66 | 6c 61 67 73 3d 3e 43 6f |.R3 =.<f|lags=>Co|
|00004750| 6c 6f 75 72 54 72 61 6e | 73 5f 47 43 4f 4c 66 6c |lourTran|s_GCOLfl|
|00004760| 61 67 73 3e 0a 09 52 34 | 20 3d 09 47 43 4f 4c 20 |ags>..R4| =.GCOL |
|00004770| 61 63 74 69 6f 6e 0a 20 | 20 20 0a 3c 3d 09 52 30 |action. | .<=.R0|
|00004780| 20 3d 09 47 43 4f 4c 0a | 09 52 32 20 3d 09 6c 6f | =.GCOL.|.R2 =.lo|
|00004790| 67 32 20 6f 66 20 62 69 | 74 73 2d 70 65 72 2d 70 |g2 of bi|ts-per-p|
|000047a0| 69 78 65 6c 20 66 6f 72 | 20 63 75 72 72 65 6e 74 |ixel for| current|
|000047b0| 20 6d 6f 64 65 0a 09 52 | 33 20 3d 09 69 6e 69 74 | mode..R|3 =.init|
|000047c0| 69 61 6c 20 76 61 6c 75 | 65 20 41 4e 44 20 26 38 |ial valu|e AND &8|
|000047d0| 30 0a 09 52 34 20 70 72 | 65 73 65 72 76 65 64 0a |0..R4 pr|eserved.|
|000047e0| 0a 54 68 69 73 20 63 61 | 6c 6c 2c 20 67 69 76 65 |.This ca|ll, give|
|000047f0| 6e 20 61 20 70 61 6c 65 | 74 74 65 20 65 6e 74 72 |n a pale|tte entr|
|00004800| 79 2c 20 77 6f 72 6b 73 | 20 6f 75 74 20 74 68 65 |y, works| out the|
|00004810| 20 63 6c 6f 73 65 73 74 | 20 47 43 4f 4c 20 69 6e | closest| GCOL in|
|00004820| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6d 6f 64 | the cur|rent mod|
|00004830| 65 20 61 6e 64 20 70 61 | 6c 65 74 74 65 2c 20 61 |e and pa|lette, a|
|00004840| 6e 64 20 73 65 74 73 20 | 69 74 2e 00 44 41 54 41 |nd sets |it..DATA|
|00004850| 27 01 00 00 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |'...Colo|urTrans_|
|00004860| 53 65 74 47 43 4f 4c 20 | 66 6c 61 67 73 20 66 6f |SetGCOL |flags fo|
|00004870| 72 20 52 33 0a 42 69 74 | 09 4d 65 61 6e 69 6e 67 |r R3.Bit|.Meaning|
|00004880| 20 69 66 20 73 65 74 0a | 23 4c 69 6e 65 0a 37 09 | if set.|#Line.7.|
|00004890| 73 65 74 20 62 61 63 6b | 67 72 6f 75 6e 64 20 63 |set back|ground c|
|000048a0| 6f 6c 6f 75 72 20 28 6f | 74 68 65 72 77 69 73 65 |olour (o|therwise|
|000048b0| 20 66 6f 72 65 67 72 6f | 75 6e 64 29 0a 38 09 75 | foregro|und).8.u|
|000048c0| 73 65 20 45 43 46 27 73 | 20 74 6f 20 67 69 76 65 |se ECF's| to give|
|000048d0| 20 61 20 62 65 74 74 65 | 72 20 61 70 70 72 6f 78 | a bette|r approx|
|000048e0| 69 6d 61 74 69 6f 6e 20 | 74 6f 20 74 68 65 20 63 |imation |to the c|
|000048f0| 6f 6c 6f 75 72 0a 0a 54 | 68 65 20 72 65 6d 61 69 |olour..T|he remai|
|00004900| 6e 69 6e 67 20 62 69 74 | 73 20 6f 66 20 52 33 20 |ning bit|s of R3 |
|00004910| 61 6e 64 20 74 68 65 20 | 74 6f 70 20 74 68 72 65 |and the |top thre|
|00004920| 65 20 62 79 74 65 73 20 | 6f 66 20 52 34 20 61 72 |e bytes |of R4 ar|
|00004930| 65 20 72 65 73 65 72 76 | 65 64 2c 20 61 6e 64 20 |e reserv|ed, and |
|00004940| 73 68 6f 75 6c 64 20 62 | 65 20 73 65 74 20 74 6f |should b|e set to|
|00004950| 20 7a 65 72 6f 20 74 6f | 20 61 6c 6c 6f 77 20 66 | zero to| allow f|
|00004960| 6f 72 20 66 75 74 75 72 | 65 20 65 78 70 61 6e 73 |or futur|e expans|
|00004970| 69 6f 6e 00 44 41 54 41 | b4 01 00 00 43 6f 6c 6f |ion.DATA|....Colo|
|00004980| 75 72 54 72 61 6e 73 5f | 53 65 74 4f 70 70 47 43 |urTrans_|SetOppGC|
|00004990| 4f 4c 20 28 26 34 30 37 | 34 38 29 0a 23 50 61 72 |OL (&407|48).#Par|
|000049a0| 65 6e 74 20 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |ent Colo|urTrans_|
|000049b0| 0a 3d 3e 09 52 30 20 3d | 09 70 61 6c 65 74 74 65 |.=>.R0 =|.palette|
|000049c0| 20 65 6e 74 72 79 0a 09 | 52 33 20 3d 09 30 20 66 | entry..|R3 =.0 f|
|000049d0| 6f 72 20 66 6f 72 65 67 | 72 6f 75 6e 64 20 6f 72 |or foreg|round or|
|000049e0| 20 31 32 38 20 66 6f 72 | 20 62 61 63 6b 67 72 6f | 128 for| backgro|
|000049f0| 75 6e 64 0a 09 52 34 20 | 3d 09 47 43 4f 4c 20 61 |und..R4 |=.GCOL a|
|00004a00| 63 74 69 6f 6e 0a 0a 3c | 3d 09 52 30 20 3d 09 47 |ction..<|=.R0 =.G|
|00004a10| 43 4f 4c 0a 09 52 32 20 | 3d 09 6c 6f 67 32 20 6f |COL..R2 |=.log2 o|
|00004a20| 66 20 62 69 74 73 2d 70 | 65 72 2d 70 69 78 65 6c |f bits-p|er-pixel|
|00004a30| 20 66 6f 72 20 63 75 72 | 72 65 6e 74 20 6d 6f 64 | for cur|rent mod|
|00004a40| 65 0a 09 52 33 20 3d 09 | 69 6e 69 74 69 61 6c 20 |e..R3 =.|initial |
|00004a50| 76 61 6c 75 65 20 41 4e | 44 20 26 38 30 0a 09 52 |value AN|D &80..R|
|00004a60| 34 20 70 72 65 73 65 72 | 76 65 64 20 0a 0a 54 68 |4 preser|ved ..Th|
|00004a70| 69 73 20 63 61 6c 6c 2c | 20 67 69 76 65 6e 20 61 |is call,| given a|
|00004a80| 20 70 61 6c 65 74 74 65 | 20 65 6e 74 72 79 2c 20 | palette| entry, |
|00004a90| 77 6f 72 6b 73 20 6f 75 | 74 20 74 68 65 20 66 75 |works ou|t the fu|
|00004aa0| 72 74 68 65 73 74 20 47 | 43 4f 4c 20 69 6e 20 74 |rthest G|COL in t|
|00004ab0| 68 65 20 63 75 72 72 65 | 6e 74 20 6d 6f 64 65 20 |he curre|nt mode |
|00004ac0| 61 6e 64 20 70 61 6c 65 | 74 74 65 2c 20 61 6e 64 |and pale|tte, and|
|00004ad0| 20 73 65 74 73 20 69 74 | 2e 0a 0a 54 68 65 20 74 | sets it|...The t|
|00004ae0| 6f 70 20 74 68 72 65 65 | 20 62 69 74 73 20 6f 66 |op three| bits of|
|00004af0| 20 52 33 20 61 6e 64 20 | 52 34 20 73 68 6f 75 6c | R3 and |R4 shoul|
|00004b00| 64 20 62 65 20 7a 65 72 | 6f 20 74 6f 20 61 6c 6c |d be zer|o to all|
|00004b10| 6f 77 20 66 6f 72 20 66 | 75 74 75 72 65 20 65 78 |ow for f|uture ex|
|00004b20| 70 61 6e 73 69 6f 6e 2e | 44 41 54 41 c8 00 00 00 |pansion.|DATA....|
|00004b30| 43 6f 6c 6f 75 72 20 74 | 72 61 6e 73 6c 61 74 69 |Colour t|ranslati|
|00004b40| 6f 6e 20 74 61 62 6c 65 | 0a 23 50 61 72 65 6e 74 |on table|.#Parent|
|00004b50| 20 43 6f 6c 6f 75 72 54 | 72 61 6e 73 5f 53 65 6c | ColourT|rans_Sel|
|00004b60| 65 63 74 54 61 62 6c 65 | 0a 30 09 43 6f 6c 6f 75 |ectTable|.0.Colou|
|00004b70| 72 20 74 6f 20 75 73 65 | 20 69 6e 73 74 65 61 64 |r to use| instead|
|00004b80| 20 6f 66 20 73 70 72 69 | 74 65 20 63 6f 6c 6f 75 | of spri|te colou|
|00004b90| 72 20 30 0a 31 09 43 6f | 6c 6f 75 72 20 74 6f 20 |r 0.1.Co|lour to |
|00004ba0| 75 73 65 20 69 6e 73 74 | 65 61 64 20 6f 66 20 73 |use inst|ead of s|
|00004bb0| 70 72 69 74 65 20 63 6f | 6c 6f 75 72 20 31 0a 2e |prite co|lour 1..|
|00004bc0| 0a 2e 0a 31 35 09 43 6f | 6c 6f 75 72 20 74 6f 20 |...15.Co|lour to |
|00004bd0| 75 73 65 20 69 6e 73 74 | 65 61 64 20 6f 66 20 73 |use inst|ead of s|
|00004be0| 70 72 69 74 65 20 63 6f | 6c 6f 75 72 20 31 35 0a |prite co|lour 15.|
|00004bf0| 44 49 52 24 50 00 00 00 | 50 00 00 00 40 4c 00 00 |DIR$P...|P...@L..|
|00004c00| 46 fd ff ff 68 8b 1d 00 | 3e 00 00 00 13 00 00 00 |F...h...|>.......|
|00004c10| 00 00 00 00 21 52 6f 6f | 74 00 00 00 80 4c 00 00 |....!Roo|t....L..|
|00004c20| 47 ff ff ff f2 f5 a8 cd | 33 01 00 00 13 00 00 00 |G.......|3.......|
|00004c30| 00 00 00 00 44 69 73 61 | 73 73 65 6d 62 6c 65 00 |....Disa|ssemble.|
|00004c40| 44 41 54 41 3e 00 00 00 | 44 65 62 75 67 67 65 72 |DATA>...|Debugger|
|00004c50| 0a 23 50 61 72 65 6e 74 | 20 21 52 6f 6f 74 0a 23 |.#Parent| !Root.#|
|00004c60| 50 72 65 66 69 78 20 44 | 65 62 75 67 67 65 72 5f |Prefix D|ebugger_|
|00004c70| 0a 3c 44 69 73 61 73 73 | 65 6d 62 6c 65 3e 00 00 |.<Disass|emble>..|
|00004c80| 44 41 54 41 33 01 00 00 | 44 65 62 75 67 67 65 72 |DATA3...|Debugger|
|00004c90| 5f 44 69 73 61 73 73 65 | 6d 62 6c 65 20 20 28 26 |_Disasse|mble (&|
|00004ca0| 34 30 33 38 30 29 0a 23 | 50 61 72 65 6e 74 20 44 |40380).#|Parent D|
|00004cb0| 65 62 75 67 67 65 72 5f | 0a 3d 3e 09 52 30 20 3d |ebugger_|.=>.R0 =|
|00004cc0| 09 69 6e 73 74 72 75 63 | 74 69 6f 6e 0a 09 52 31 |.instruc|tion..R1|
|00004cd0| 20 3d 09 61 64 64 72 65 | 73 73 20 69 74 20 63 61 | =.addre|ss it ca|
|00004ce0| 6d 65 20 66 72 6f 6d 0a | 0a 3c 3d 09 52 31 20 3d |me from.|.<=.R1 =|
|00004cf0| 09 70 6f 69 6e 74 65 72 | 20 74 6f 20 7a 65 72 6f |.pointer| to zero|
|00004d00| 20 74 65 72 6d 69 6e 61 | 74 65 64 20 73 74 72 69 | termina|ted stri|
|00004d10| 6e 67 0a 09 52 32 20 3d | 09 6c 65 6e 67 74 68 2c |ng..R2 =|.length,|
|00004d20| 20 69 6e 63 6c 75 64 69 | 6e 67 20 74 65 72 6d 69 | includi|ng termi|
|00004d30| 6e 61 74 6f 72 0a 0a 54 | 68 69 73 20 53 57 49 20 |nator..T|his SWI |
|00004d40| 64 69 73 61 73 73 65 6d | 62 6c 65 73 20 61 6e 20 |disassem|bles an |
|00004d50| 69 6e 73 74 72 75 63 74 | 69 6f 6e 2e 20 54 68 65 |instruct|ion. The|
|00004d60| 20 61 64 64 72 65 73 73 | 20 69 6e 20 52 31 20 69 | address| in R1 i|
|00004d70| 73 20 6e 65 65 64 65 64 | 20 66 6f 72 20 50 43 20 |s needed| for PC |
|00004d80| 72 65 6c 61 74 69 76 65 | 20 69 6e 73 74 72 75 63 |relative| instruc|
|00004d90| 74 69 6f 6e 73 20 28 6c | 69 6b 65 20 42 2c 20 42 |tions (l|ike B, B|
|00004da0| 4c 2c 20 4c 44 52 20 78 | 2c 5b 50 43 2c 23 2e 2e |L, LDR x|,[PC,#..|
|00004db0| 5d 20 29 00 44 49 52 24 | 2c 00 00 00 2c 00 00 00 |] ).DIR$|,...,...|
|00004dc0| e0 4d 00 00 46 fd ff ff | 71 8b 1d 00 8d 00 00 00 |.M..F...|q.......|
|00004dd0| 13 00 00 00 00 00 00 00 | 21 52 6f 6f 74 00 00 00 |........|!Root...|
|00004de0| 44 41 54 41 8d 00 00 00 | 44 65 76 69 63 65 46 53 |DATA....|DeviceFS|
|00004df0| 0a 23 50 61 72 65 6e 74 | 20 21 52 6f 6f 74 0a 43 |.#Parent| !Root.C|
|00004e00| 61 6c 6c 44 65 76 69 63 | 65 0a 44 65 72 65 67 69 |allDevic|e.Deregi|
|00004e10| 73 74 65 72 0a 44 65 72 | 65 67 69 73 74 65 72 4f |ster.Der|egisterO|
|00004e20| 62 6a 65 63 74 73 0a 52 | 65 63 69 65 76 65 64 43 |bjects.R|ecievedC|
|00004e30| 68 61 72 61 63 74 65 72 | 0a 52 65 67 69 73 74 65 |haracter|.Registe|
|00004e40| 72 0a 52 65 67 69 73 74 | 65 72 4f 62 6a 65 63 74 |r.Regist|erObject|
|00004e50| 73 0a 54 68 72 65 73 68 | 6f 6c 64 0a 54 72 61 6e |s.Thresh|old.Tran|
|00004e60| 73 6d 69 74 43 68 61 72 | 61 63 74 65 72 00 00 00 |smitChar|acter...|
|00004e70| 44 49 52 24 2c 00 00 00 | 2c 00 00 00 9c 4e 00 00 |DIR$,...|,....N..|
|00004e80| 47 fd ff ff ed 0d 84 82 | b3 00 00 00 13 00 00 00 |G.......|........|
|00004e90| 00 00 00 00 21 52 6f 6f | 74 00 00 00 44 41 54 41 |....!Roo|t...DATA|
|00004ea0| b3 00 00 00 44 4d 41 0a | 23 50 61 72 65 6e 74 20 |....DMA.|#Parent |
|00004eb0| 21 52 6f 6f 74 0a 23 50 | 72 65 66 69 78 20 44 4d |!Root.#P|refix DM|
|00004ec0| 41 5f 0a 23 54 61 62 6c | 65 20 43 6f 6c 75 6d 6e |A_.#Tabl|e Column|
|00004ed0| 73 20 32 0a 52 65 67 69 | 73 74 65 72 43 68 61 6e |s 2.Regi|sterChan|
|00004ee0| 6e 65 6c 0a 44 65 72 65 | 67 69 73 74 65 72 43 68 |nel.Dere|gisterCh|
|00004ef0| 61 6e 6e 65 6c 0a 51 75 | 65 75 65 54 72 61 6e 73 |annel.Qu|eueTrans|
|00004f00| 66 65 72 0a 54 65 72 6d | 69 6e 61 74 65 54 72 61 |fer.Term|inateTra|
|00004f10| 6e 73 66 65 72 0a 53 75 | 73 70 65 6e 64 54 72 61 |nsfer.Su|spendTra|
|00004f20| 6e 73 66 65 72 0a 52 65 | 73 75 6d 65 54 72 61 6e |nsfer.Re|sumeTran|
|00004f30| 73 66 65 72 0a 45 78 61 | 6d 69 6e 65 54 72 61 6e |sfer.Exa|mineTran|
|00004f40| 73 66 65 72 0a 23 45 6e | 64 54 61 62 6c 65 0a 00 |sfer.#En|dTable..|
|00004f50| 44 49 52 24 9c 00 00 00 | 9c 00 00 00 ec 4f 00 00 |DIR$....|.....O..|
|00004f60| 46 fd ff ff 61 58 66 db | 49 00 00 00 13 00 00 00 |F...aXf.|I.......|
|00004f70| 00 00 00 00 21 52 6f 6f | 74 00 00 00 38 50 00 00 |....!Roo|t...8P..|
|00004f80| 46 ff ff ff d9 fb 65 db | 30 04 00 00 13 00 00 00 |F.....e.|0.......|
|00004f90| 00 00 00 00 44 69 73 63 | 46 6f 72 6d 61 74 00 00 |....Disc|Format..|
|00004fa0| 68 54 00 00 46 fd ff ff | 6d 2b 66 db 83 01 00 00 |hT..F...|m+f.....|
|00004fb0| 13 00 00 00 00 00 00 00 | 46 6f 72 6d 61 74 53 70 |........|FormatSp|
|00004fc0| 65 63 00 00 ec 55 00 00 | 46 ff ff ff 20 4e 66 db |ec...U..|F... Nf.|
|00004fd0| 09 05 00 00 13 00 00 00 | 00 00 00 00 4c 61 79 6f |........|....Layo|
|00004fe0| 75 74 53 74 72 75 63 74 | 75 72 65 00 44 41 54 41 |utStruct|ure.DATA|
|00004ff0| 49 00 00 00 44 4f 53 46 | 53 0a 23 50 61 72 65 6e |I...DOSF|S.#Paren|
|00005000| 74 20 21 52 6f 6f 74 0a | 23 50 72 65 66 69 78 20 |t !Root.|#Prefix |
|00005010| 44 4f 53 46 53 5f 0a 3c | 44 69 73 63 46 6f 72 6d |DOSFS_.<|DiscForm|
|00005020| 61 74 3e 0a 3c 4c 61 79 | 6f 75 74 53 74 72 75 63 |at>.<Lay|outStruc|
|00005030| 74 75 72 65 3e 00 00 00 | 44 41 54 41 30 04 00 00 |ture>...|DATA0...|
|00005040| 44 4f 53 46 53 5f 44 69 | 73 63 46 6f 72 6d 61 74 |DOSFS_Di|scFormat|
|00005050| 20 28 26 34 31 41 43 30 | 29 0a 23 50 61 72 65 6e | (&41AC0|).#Paren|
|00005060| 74 20 44 4f 53 46 53 5f | 0a 3d 3e 09 52 30 20 3d |t DOSFS_|.=>.R0 =|
|00005070| 09 70 6f 69 6e 74 65 72 | 20 74 6f 20 3c 64 69 73 |.pointer| to <dis|
|00005080| 63 20 66 6f 72 6d 61 74 | 20 73 74 72 75 63 74 75 |c format| structu|
|00005090| 72 65 3d 3e 46 69 6c 65 | 43 6f 72 65 5f 46 6f 72 |re=>File|Core_For|
|000050a0| 6d 61 74 3e 20 74 6f 20 | 62 65 20 66 69 6c 6c 65 |mat> to |be fille|
|000050b0| 64 20 69 6e 0a 09 52 31 | 20 3d 09 53 57 49 20 6e |d in..R1| =.SWI n|
|000050c0| 75 6d 62 65 72 20 74 6f | 20 63 61 6c 6c 20 74 6f |umber to| call to|
|000050d0| 20 76 65 74 20 64 69 73 | 63 20 66 6f 72 6d 61 74 | vet dis|c format|
|000050e0| 20 28 65 67 20 3c 41 44 | 46 53 5f 56 65 74 46 6f | (eg <AD|FS_VetFo|
|000050f0| 72 6d 61 74 3e 29 0a 09 | 52 32 20 3d 09 70 61 72 |rmat>)..|R2 =.par|
|00005100| 61 6d 65 74 65 72 20 69 | 6e 20 52 31 20 74 6f 20 |ameter i|n R1 to |
|00005110| 75 73 65 20 77 68 65 6e | 20 63 61 6c 6c 69 6e 67 |use when| calling|
|00005120| 20 76 65 74 74 69 6e 67 | 20 53 57 49 0a 09 52 33 | vetting| SWI..R3|
|00005130| 20 3d 09 3c 66 6f 72 6d | 61 74 20 73 70 65 63 69 | =.<form|at speci|
|00005140| 66 69 65 72 3d 3e 44 4f | 53 46 53 5f 46 6f 72 6d |fier=>DO|SFS_Form|
|00005150| 61 74 53 70 65 63 3e 0a | 0a 3c 3d 09 52 30 2d 52 |atSpec>.|.<=.R0-R|
|00005160| 33 20 70 72 65 73 65 72 | 76 65 64 0a 0a 54 68 69 |3 preser|ved..Thi|
|00005170| 73 20 63 61 6c 6c 20 66 | 69 6c 6c 73 20 69 6e 20 |s call f|ills in |
|00005180| 74 68 65 20 64 69 73 63 | 20 66 6f 72 6d 61 74 20 |the disc| format |
|00005190| 73 74 72 75 63 74 75 72 | 65 20 70 6f 69 6e 74 65 |structur|e pointe|
|000051a0| 64 20 74 6f 20 62 79 20 | 52 30 20 77 69 74 68 20 |d to by |R0 with |
|000051b0| 74 68 65 20 27 70 72 65 | 66 65 63 74 27 20 70 61 |the 'pre|fect' pa|
|000051c0| 72 61 6d 65 74 65 72 73 | 20 66 6f 72 20 74 68 65 |rameters| for the|
|000051d0| 20 73 70 65 63 69 66 69 | 65 64 20 66 6f 72 6d 61 | specifi|ed forma|
|000051e0| 74 2c 20 74 61 6b 69 6e | 67 20 6e 6f 20 61 63 63 |t, takin|g no acc|
|000051f0| 6f 75 6e 74 20 6f 66 20 | 74 68 65 20 61 62 69 6c |ount of |the abil|
|00005200| 69 74 69 65 73 20 6f 66 | 20 74 68 65 20 61 76 61 |ities of| the ava|
|00005210| 69 6c 61 62 6c 65 20 68 | 61 72 64 77 61 72 65 20 |ilable h|ardware |
|00005220| 74 68 61 74 20 77 69 6c | 6c 20 68 61 76 65 20 74 |that wil|l have t|
|00005230| 6f 20 70 65 72 66 6f 72 | 6d 20 74 68 65 20 66 6f |o perfor|m the fo|
|00005240| 72 6d 61 74 2e 20 4f 6e | 63 65 20 66 69 6c 6c 65 |rmat. On|ce fille|
|00005250| 64 20 69 6e 2c 20 74 68 | 69 73 20 53 57 49 20 63 |d in, th|is SWI c|
|00005260| 61 6c 6c 73 20 74 68 65 | 20 76 65 74 74 69 6e 67 |alls the| vetting|
|00005270| 20 53 57 49 20 74 6f 20 | 63 68 65 63 6b 20 74 68 | SWI to |check th|
|00005280| 65 20 66 6f 72 6d 61 79 | 20 73 74 72 75 63 74 75 |e formay| structu|
|00005290| 72 65 20 66 6f 72 20 61 | 63 68 69 65 76 61 62 69 |re for a|chievabi|
|000052a0| 6c 69 74 79 20 6f 6e 20 | 74 68 65 20 61 76 61 69 |lity on |the avai|
|000052b0| 6c 61 62 6c 65 20 68 61 | 72 64 77 61 72 65 2e 20 |lable ha|rdware. |
|000052c0| 54 68 65 20 76 65 74 74 | 69 6e 67 20 53 57 49 20 |The vett|ing SWI |
|000052d0| 6d 61 79 20 67 65 6e 65 | 72 61 74 65 20 61 6e 20 |may gene|rate an |
|000052e0| 65 72 72 6f 72 20 69 66 | 20 74 68 65 20 66 6f 72 |error if| the for|
|000052f0| 6d 61 74 20 64 69 66 66 | 65 72 73 20 77 69 64 65 |mat diff|ers wide|
|00005300| 6c 79 20 66 72 6f 6d 20 | 77 68 61 74 20 63 61 6e |ly from |what can|
|00005310| 20 62 65 20 61 63 68 69 | 65 76 65 64 3b 20 61 6c | be achi|eved; al|
|00005320| 74 65 72 6e 61 74 69 76 | 65 6c 79 20 69 74 20 6d |ternativ|ely it m|
|00005330| 61 79 20 61 6c 74 65 72 | 20 74 68 65 20 66 6f 72 |ay alter| the for|
|00005340| 6d 61 74 20 73 74 72 75 | 63 74 75 72 65 20 74 6f |mat stru|cture to|
|00005350| 20 74 68 65 20 63 6c 6f | 73 65 73 74 20 6d 61 74 | the clo|sest mat|
|00005360| 63 68 20 74 68 61 74 20 | 63 61 6e 20 62 65 20 61 |ch that |can be a|
|00005370| 63 68 69 65 76 65 64 2e | 20 54 68 65 20 76 65 74 |chieved.| The vet|
|00005380| 74 69 6e 67 20 53 57 49 | 20 74 68 65 6e 20 72 65 |ting SWI| then re|
|00005390| 74 75 72 6e 73 20 74 6f | 20 74 68 69 73 20 53 57 |turns to| this SW|
|000053a0| 49 2c 20 77 68 69 63 68 | 20 63 68 65 63 6b 73 20 |I, which| checks |
|000053b0| 77 68 65 74 68 65 72 20 | 74 68 65 20 66 6f 72 6d |whether |the form|
|000053c0| 61 74 20 62 6c 6f 63 6b | 20 2d 20 61 73 20 75 70 |at block| - as up|
|000053d0| 64 61 74 65 64 20 62 79 | 20 74 68 65 20 76 65 74 |dated by| the vet|
|000053e0| 74 69 6e 67 20 53 57 49 | 20 2d 20 69 73 20 73 74 |ting SWI| - is st|
|000053f0| 69 6c 6c 20 61 6e 20 61 | 64 65 71 75 61 74 65 20 |ill an a|dequate |
|00005400| 6d 61 74 63 68 20 66 6f | 72 20 74 68 65 20 64 65 |match fo|r the de|
|00005410| 73 69 72 65 64 20 66 6f | 72 6d 61 74 2e 20 49 66 |sired fo|rmat. If|
|00005420| 20 69 74 20 69 73 2c 20 | 74 68 69 73 20 53 57 49 | it is, |this SWI|
|00005430| 20 72 65 74 75 72 6e 73 | 20 74 6f 20 69 74 73 20 | returns| to its |
|00005440| 63 61 6c 6c 65 72 3b 20 | 6f 74 68 65 72 77 69 73 |caller; |otherwis|
|00005450| 65 20 69 74 20 67 65 6e | 65 72 61 74 65 73 20 61 |e it gen|erates a|
|00005460| 6e 20 65 72 72 6f 72 2e | 44 41 54 41 83 01 00 00 |n error.|DATA....|
|00005470| 46 6f 72 6d 61 74 20 73 | 70 65 63 69 66 69 65 72 |Format s|pecifier|
|00005480| 0a 5c 23 09 4e 61 6d 65 | 09 53 69 7a 65 09 4f 53 |.\#.Name|.Size.OS|
|00005490| 09 09 54 79 70 65 0a 23 | 4c 69 6e 65 0a 30 09 44 |..Type.#|Line.0.D|
|000054a0| 4f 53 2f 51 09 31 2e 34 | 34 4d 09 4d 53 2d 44 4f |OS/Q.1.4|4M.MS-DO|
|000054b0| 53 20 33 2e 32 30 09 64 | 6f 75 62 6c 65 20 73 69 |S 3.20.d|ouble si|
|000054c0| 64 65 64 0a 31 09 44 4f | 53 2f 4d 09 37 32 30 6b |ded.1.DO|S/M.720k|
|000054d0| 09 4d 53 2d 44 4f 53 20 | 33 2e 32 30 09 64 6f 75 |.MS-DOS |3.20.dou|
|000054e0| 62 6c 65 20 73 69 64 65 | 64 0a 32 09 44 4f 53 2f |ble side|d.2.DOS/|
|000054f0| 48 09 31 2e 32 30 4d 09 | 4d 53 2d 44 4f 53 20 33 |H.1.20M.|MS-DOS 3|
|00005500| 09 64 6f 75 62 6c 65 20 | 73 69 64 65 64 0a 33 09 |.double |sided.3.|
|00005510| 44 4f 53 2f 4e 09 33 36 | 30 6b 09 4d 53 2d 44 4f |DOS/N.36|0k.MS-DO|
|00005520| 53 20 32 2c 33 09 64 6f | 75 62 6c 65 20 73 69 64 |S 2,3.do|uble sid|
|00005530| 65 64 0a 34 09 44 4f 53 | 2f 50 09 31 38 30 6b 09 |ed.4.DOS|/P.180k.|
|00005540| 4d 53 2d 44 4f 53 20 32 | 2c 33 09 73 69 6e 67 6c |MS-DOS 2|,3.singl|
|00005550| 65 20 73 69 64 65 64 0a | 35 09 44 4f 53 2f 54 09 |e sided.|5.DOS/T.|
|00005560| 33 32 30 6b 09 4d 53 2d | 44 4f 53 20 31 2c 32 2c |320k.MS-|DOS 1,2,|
|00005570| 33 09 64 6f 75 62 6c 65 | 20 73 69 64 65 64 0a 36 |3.double| sided.6|
|00005580| 09 44 4f 53 2f 55 09 31 | 36 30 6b 09 4d 53 2d 44 |.DOS/U.1|60k.MS-D|
|00005590| 4f 53 20 31 2c 32 2c 33 | 09 73 69 6e 67 6c 65 20 |OS 1,2,3|.single |
|000055a0| 73 69 64 65 64 0a 37 09 | 41 74 61 72 69 2f 4d 09 |sided.7.|Atari/M.|
|000055b0| 37 32 30 6b 09 41 74 61 | 72 69 09 09 64 6f 75 62 |720k.Ata|ri..doub|
|000055c0| 6c 65 20 73 69 64 65 64 | 0a 38 09 41 74 61 72 69 |le sided|.8.Atari|
|000055d0| 2f 4e 09 33 36 30 6b 09 | 41 74 61 72 69 09 09 73 |/N.360k.|Atari..s|
|000055e0| 69 6e 67 6c 65 20 73 69 | 64 65 64 00 44 41 54 41 |ingle si|ded.DATA|
|000055f0| 09 05 00 00 44 4f 53 46 | 53 5f 4c 61 79 6f 75 74 |....DOSF|S_Layout|
|00005600| 53 74 72 75 63 74 75 72 | 65 20 28 26 34 31 41 43 |Structur|e (&41AC|
|00005610| 31 29 0a 23 50 61 72 65 | 6e 74 20 44 4f 53 46 53 |1).#Pare|nt DOSFS|
|00005620| 5f 0a 3d 3e 09 52 30 20 | 3d 09 3c 73 74 72 75 63 |_.=>.R0 |=.<struc|
|00005630| 74 75 72 65 20 73 70 65 | 63 69 66 69 65 72 3d 3e |ture spe|cifier=>|
|00005640| 44 4f 53 46 53 5f 46 6f | 72 6d 61 74 53 70 65 63 |DOSFS_Fo|rmatSpec|
|00005650| 3e 0a 09 52 31 20 3d 09 | 70 6f 69 6e 74 65 72 20 |>..R1 =.|pointer |
|00005660| 74 6f 20 62 61 64 20 62 | 6c 6f 63 6b 20 6c 69 73 |to bad b|lock lis|
|00005670| 74 20 28 74 65 72 6d 69 | 6e 61 74 65 64 20 62 79 |t (termi|nated by|
|00005680| 20 2d 31 29 0a 09 52 32 | 20 3d 09 70 6f 69 6e 74 | -1)..R2| =.point|
|00005690| 65 72 20 74 6f 20 6e 75 | 6c 6c 20 74 65 72 6d 69 |er to nu|ll termi|
|000056a0| 6e 61 74 65 64 20 64 69 | 73 63 20 6e 61 6d 65 0a |nated di|sc name.|
|000056b0| 09 52 33 20 3d 09 69 6d | 61 67 65 20 66 69 6c 65 |.R3 =.im|age file|
|000056c0| 20 68 61 6e 64 6c 65 0a | 0a 3c 3d 20 52 30 2d 52 | handle.|.<= R0-R|
|000056d0| 33 20 70 72 65 73 65 72 | 76 65 64 0a 0a 54 68 69 |3 preser|ved..Thi|
|000056e0| 73 20 63 61 6c 6c 20 6c | 61 79 73 20 6f 75 74 20 |s call l|ays out |
|000056f0| 69 6e 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |in the s|pecified|
|00005700| 20 69 6d 61 67 65 20 61 | 6c 6c 20 6e 65 63 65 73 | image a|ll neces|
|00005710| 73 61 72 79 20 73 74 72 | 75 63 74 75 72 65 73 20 |sary str|uctures |
|00005720| 74 6f 20 68 61 76 65 20 | 61 20 76 61 6c 69 64 2c |to have |a valid,|
|00005730| 20 65 6d 70 74 79 20 64 | 69 73 63 2e 20 49 74 20 | empty d|isc. It |
|00005740| 63 61 6e 20 62 65 20 75 | 73 65 64 3a 0a 0a 23 49 |can be u|sed:..#I|
|00005750| 6e 64 65 6e 74 20 32 0a | 8f 20 74 6f 20 6c 61 79 |ndent 2.|. to lay|
|00005760| 6f 75 74 20 61 20 73 74 | 72 75 63 74 75 72 65 20 |out a st|ructure |
|00005770| 6f 6e 20 61 20 62 6c 61 | 63 6b 2c 20 66 6f 72 6d |on a bla|ck, form|
|00005780| 61 74 74 65 64 20 64 69 | 73 63 20 28 69 6e 20 77 |atted di|sc (in w|
|00005790| 68 69 63 68 20 63 61 73 | 65 20 74 68 65 20 73 70 |hich cas|e the sp|
|000057a0| 65 63 69 66 69 65 64 20 | 69 6d 61 67 65 20 73 68 |ecified |image sh|
|000057b0| 6f 75 6c 64 20 62 65 20 | 74 68 65 20 77 68 6f 6c |ould be |the whol|
|000057c0| 65 20 64 69 73 63 20 69 | 6d 61 67 65 29 0a 8f 20 |e disc i|mage).. |
|000057d0| 74 6f 20 6c 61 79 6f 75 | 74 20 61 20 70 61 72 74 |to layou|t a part|
|000057e0| 69 74 69 6f 6e 20 69 6e | 20 61 20 66 69 6c 65 20 |ition in| a file |
|000057f0| 6f 6e 20 61 20 64 69 73 | 63 20 74 68 61 74 20 68 |on a dis|c that h|
|00005800| 61 73 20 61 6c 72 65 61 | 64 79 20 62 65 65 6e 20 |as alrea|dy been |
|00005810| 66 6f 72 6d 61 74 74 65 | 64 20 28 66 6f 72 20 65 |formatte|d (for e|
|00005820| 78 61 6d 70 6c 65 20 66 | 6f 72 20 74 68 65 20 50 |xample f|or the P|
|00005830| 43 20 65 6d 75 6c 61 74 | 6f 72 29 2e 0a 23 49 6e |C emulat|or)..#In|
|00005840| 64 65 6e 74 0a 0a 49 66 | 20 74 68 65 20 67 69 76 |dent..If| the giv|
|00005850| 65 6e 20 69 6d 61 67 65 | 20 66 6f 72 6d 61 74 20 |en image| format |
|00005860| 68 61 73 20 6e 6f 20 6f | 70 74 69 6f 6e 20 74 6f |has no o|ption to|
|00005870| 20 73 74 6f 72 65 20 61 | 20 64 69 73 63 20 6e 61 | store a| disc na|
|00005880| 6d 65 20 74 68 65 6e 20 | 74 68 69 73 20 70 61 72 |me then |this par|
|00005890| 61 6d 65 74 65 72 20 73 | 68 6f 75 6c 64 20 62 65 |ameter s|hould be|
|000058a0| 20 69 67 6e 6f 72 65 64 | 2e 0a 0a 54 68 65 20 62 | ignored|...The b|
|000058b0| 61 64 20 62 6c 6f 63 6b | 20 6c 69 73 74 20 73 68 |ad block| list sh|
|000058c0| 6f 75 6c 64 20 62 65 20 | 70 72 65 73 65 6e 74 65 |ould be |presente|
|000058d0| 64 20 61 73 20 61 6e 20 | 61 72 72 61 79 20 6f 66 |d as an |array of|
|000058e0| 20 62 61 64 20 62 6c 6f | 63 6b 20 61 64 64 72 65 | bad blo|ck addre|
|000058f0| 73 73 65 73 2e 20 45 61 | 63 68 20 61 64 64 72 65 |sses. Ea|ch addre|
|00005900| 73 73 20 69 73 20 34 20 | 62 79 74 65 73 20 6c 6f |ss is 4 |bytes lo|
|00005910| 6e 67 2e 20 54 68 65 20 | 61 72 72 61 79 20 69 73 |ng. The |array is|
|00005920| 20 74 65 72 6d 69 6e 61 | 74 65 64 20 62 79 20 61 | termina|ted by a|
|00005930| 20 2d 31 20 65 6e 74 72 | 79 2e 0a 0a 49 74 27 73 | -1 entr|y...It's|
|00005940| 20 61 73 73 75 6d 65 64 | 20 74 68 61 74 20 52 30 | assumed| that R0|
|00005950| 20 67 69 76 65 73 20 65 | 6e 6f 75 67 68 20 69 6e | gives e|nough in|
|00005960| 66 6f 72 6d 61 74 69 6f | 6e 20 66 6f 72 20 74 68 |formatio|n for th|
|00005970| 65 20 66 6f 72 6d 61 74 | 20 2d 20 69 74 20 6d 61 |e format| - it ma|
|00005980| 74 20 62 65 20 74 68 61 | 74 20 52 30 20 63 6f 6e |t be tha|t R0 con|
|00005990| 74 61 69 6e 73 20 6d 61 | 6e 79 20 62 69 74 20 66 |tains ma|ny bit f|
|000059a0| 69 65 6c 64 73 20 6f 72 | 20 70 6f 69 6e 74 73 20 |ields or| points |
|000059b0| 74 6f 20 61 20 62 6c 6f | 63 6b 20 6f 66 20 69 6e |to a blo|ck of in|
|000059c0| 66 6f 72 6d 61 74 69 6f | 6e 73 20 2d 20 74 68 65 |formatio|ns - the|
|000059d0| 20 63 68 6f 69 63 65 20 | 69 73 20 75 70 20 74 6f | choice |is up to|
|000059e0| 20 74 68 65 20 69 6d 61 | 67 65 20 66 69 6c 69 6e | the ima|ge filin|
|000059f0| 67 20 73 79 73 74 65 6d | 20 6d 6f 64 75 6c 65 2e |g system| module.|
|00005a00| 20 54 68 65 20 76 61 6c | 75 65 20 69 6e 20 52 30 | The val|ue in R0|
|00005a10| 20 69 73 20 75 73 65 64 | 20 74 6f 20 70 61 73 73 | is used| to pass|
|00005a20| 20 65 6e 6f 75 67 68 20 | 69 6e 66 6f 72 6d 61 74 | enough |informat|
|00005a30| 69 6f 6e 20 74 6f 20 73 | 70 65 63 69 66 79 20 74 |ion to s|pecify t|
|00005a40| 68 65 20 64 69 73 63 20 | 73 74 72 75 63 74 75 72 |he disc |structur|
|00005a50| 65 20 44 4f 53 46 53 20 | 75 73 65 73 20 61 20 73 |e DOSFS |uses a s|
|00005a60| 69 6d 70 6c 65 20 74 61 | 62 6c 65 20 69 6e 64 65 |imple ta|ble inde|
|00005a70| 78 20 66 6f 72 20 74 68 | 69 73 3b 20 6f 74 68 65 |x for th|is; othe|
|00005a80| 72 20 69 6d 61 67 65 20 | 66 69 6c 69 6e 67 20 73 |r image |filing s|
|00005a90| 79 73 74 65 6d 73 20 6d | 61 79 20 70 61 73 73 20 |ystems m|ay pass |
|00005aa0| 64 69 66 66 65 72 65 6e | 74 20 69 6e 66 6f 72 6d |differen|t inform|
|00005ab0| 61 74 69 6f 6e 73 20 28 | 75 73 69 6e 67 20 61 20 |ations (|using a |
|00005ac0| 70 6f 69 6e 74 65 72 20 | 69 66 20 6e 65 63 65 73 |pointer |if neces|
|00005ad0| 73 61 72 79 29 20 66 6f | 72 20 74 68 65 69 72 20 |sary) fo|r their |
|00005ae0| 4c 61 79 6f 75 74 53 74 | 72 75 63 74 75 72 65 20 |LayoutSt|ructure |
|00005af0| 53 57 49 2e 0a 00 00 00 | 44 49 52 24 6c 00 00 00 |SWI.....|DIR$l...|
|00005b00| 6c 00 00 00 64 5b 00 00 | 47 fd ff ff 5e 6c 18 1e |l...d[..|G...^l..|
|00005b10| 69 00 00 00 13 00 00 00 | 00 00 00 00 21 52 6f 6f |i.......|....!Roo|
|00005b20| 74 00 00 00 d0 5b 00 00 | 47 ff ff ff db 4a 17 1e |t....[..|G....J..|
|00005b30| 2f 04 00 00 13 00 00 00 | 00 00 00 00 52 65 6e 64 |/.......|....Rend|
|00005b40| 65 72 00 00 00 60 00 00 | 47 ff ff ff 63 7d 18 1e |er...`..|G...c}..|
|00005b50| f0 01 00 00 13 00 00 00 | 00 00 00 00 42 42 6f 78 |........|....BBox|
|00005b60| 00 00 00 00 44 41 54 41 | 69 00 00 00 44 72 61 77 |....DATA|i...Draw|
|00005b70| 46 69 6c 65 0a 23 50 61 | 72 65 6e 74 20 21 52 6f |File.#Pa|rent !Ro|
|00005b80| 6f 74 0a 23 50 72 65 66 | 69 78 20 44 72 61 77 46 |ot.#Pref|ix DrawF|
|00005b90| 69 6c 65 5f 0a 23 54 61 | 62 6c 65 20 43 6f 6c 75 |ile_.#Ta|ble Colu|
|00005ba0| 6d 6e 73 20 31 0a 3c 52 | 65 6e 64 65 72 3e 0a 3c |mns 1.<R|ender>.<|
|00005bb0| 42 42 6f 78 3e 0a 44 65 | 63 6c 61 72 65 46 6f 6e |BBox>.De|clareFon|
|00005bc0| 74 73 0a 23 45 6e 64 54 | 61 62 6c 65 0a 00 00 00 |ts.#EndT|able....|
|00005bd0| 44 41 54 41 2f 04 00 00 | 44 72 61 77 46 69 6c 65 |DATA/...|DrawFile|
|00005be0| 5f 52 65 6e 64 65 72 0a | 23 50 61 72 65 6e 74 20 |_Render.|#Parent |
|00005bf0| 44 72 61 77 46 69 6c 65 | 5f 0a 3d 3e 09 52 30 20 |DrawFile|_.=>.R0 |
|00005c00| 3d 09 3c 66 6c 61 67 73 | 3d 3e 2e 66 6c 61 67 73 |=.<flags|=>.flags|
|00005c10| 3e 0a 09 52 31 20 3d 09 | 70 6f 69 6e 74 65 72 20 |>..R1 =.|pointer |
|00005c20| 74 6f 20 64 72 61 77 66 | 69 6c 65 20 62 6c 6f 63 |to drawf|ile bloc|
|00005c30| 6b 0a 09 52 32 20 3d 09 | 6c 65 6e 67 74 68 20 6f |k..R2 =.|length o|
|00005c40| 66 20 62 6c 6f 63 6b 0a | 09 52 33 20 3d 09 74 72 |f block.|.R3 =.tr|
|00005c50| 61 6e 73 66 6f 72 6d 61 | 74 69 6f 6e 20 6d 61 74 |ansforma|tion mat|
|00005c60| 72 69 78 2c 20 6f 72 20 | 30 20 74 6f 20 75 73 65 |rix, or |0 to use|
|00005c70| 20 69 64 65 6e 74 69 74 | 79 20 6d 61 74 72 69 78 | identit|y matrix|
|00005c80| 0a 09 52 34 20 3d 09 70 | 6f 69 6e 74 65 72 20 74 |..R4 =.p|ointer t|
|00005c90| 6f 20 63 6c 69 70 70 69 | 6e 67 20 72 65 63 74 61 |o clippi|ng recta|
|00005ca0| 6e 67 6c 65 20 69 6e 20 | 4f 53 20 75 6e 69 74 73 |ngle in |OS units|
|00005cb0| 2c 20 6f 72 20 30 20 66 | 6f 72 20 6e 6f 6e 65 0a |, or 0 f|or none.|
|00005cc0| 09 52 35 20 3d 09 66 6c | 61 74 6e 65 73 73 20 69 |.R5 =.fl|atness i|
|00005cd0| 66 20 62 69 74 20 32 20 | 6f 66 20 52 30 20 73 65 |f bit 2 |of R0 se|
|00005ce0| 74 0a 3c 3d 09 41 6c 6c | 20 70 72 65 73 65 72 76 |t.<=.All| preserv|
|00005cf0| 65 64 0a 0a 54 68 69 73 | 20 53 57 49 20 72 65 6e |ed..This| SWI ren|
|00005d00| 64 65 72 73 20 61 20 64 | 72 61 77 20 66 69 6c 65 |ders a d|raw file|
|00005d10| 20 61 74 20 61 20 67 69 | 76 65 6e 20 73 63 72 65 | at a gi|ven scre|
|00005d20| 65 6e 20 70 6f 73 69 74 | 69 6f 6e 20 77 68 65 72 |en posit|ion wher|
|00005d30| 65 20 74 68 61 74 20 70 | 6f 73 69 74 69 6f 6e 20 |e that p|osition |
|00005d40| 69 73 20 64 65 66 69 6e | 65 64 20 61 73 20 73 63 |is defin|ed as sc|
|00005d50| 72 65 65 6e 20 70 6f 73 | 69 74 69 6f 6e 20 30 2c |reen pos|ition 0,|
|00005d60| 20 30 20 77 69 74 68 20 | 74 68 65 20 78 2d 20 61 | 0 with |the x- a|
|00005d70| 6e 64 20 79 2d 74 72 61 | 6e 73 6c 61 74 69 6f 6e |nd y-tra|nslation|
|00005d80| 73 20 61 73 20 73 70 65 | 63 69 66 69 65 64 20 69 |s as spe|cified i|
|00005d90| 6e 20 74 68 65 20 74 72 | 61 6e 73 66 6f 72 6d 61 |n the tr|ansforma|
|00005da0| 74 69 6f 6e 20 6d 61 74 | 72 69 78 2e 20 48 65 6e |tion mat|rix. Hen|
|00005db0| 63 65 2c 20 74 6f 20 72 | 65 6e 64 65 72 20 61 20 |ce, to r|ender a |
|00005dc0| 6e 6f 6e 2d 72 6f 74 61 | 74 65 64 20 31 3a 31 20 |non-rota|ted 1:1 |
|00005dd0| 64 72 61 77 20 66 69 6c | 65 20 61 74 20 28 78 2c |draw fil|e at (x,|
|00005de0| 20 79 29 20 28 73 63 72 | 65 65 6e 20 63 6f 6f 72 | y) (scr|een coor|
|00005df0| 64 69 6e 61 74 65 73 20 | 69 6e 20 4f 53 20 75 6e |dinates |in OS un|
|00005e00| 69 74 73 29 20 74 68 65 | 20 74 72 61 6e 73 66 6f |its) the| transfo|
|00005e10| 72 6d 61 74 69 6f 6e 20 | 6d 61 74 72 69 78 20 69 |rmation |matrix i|
|00005e20| 73 20 3a 0a 23 49 6e 64 | 65 6e 74 20 32 3b 54 61 |s :.#Ind|ent 2;Ta|
|00005e30| 62 0a 28 09 31 20 3c 3c | 20 31 36 09 30 09 29 0a |b.(.1 <<| 16.0.).|
|00005e40| 28 09 30 09 31 20 3c 3c | 20 31 36 09 29 0a 28 09 |(.0.1 <<| 16.).(.|
|00005e50| 32 35 36 2a 78 09 32 35 | 36 2a 79 09 29 0a 23 49 |256*x.25|6*y.).#I|
|00005e60| 6e 64 65 6e 74 0a 0a 54 | 68 65 20 63 6c 69 70 70 |ndent..T|he clipp|
|00005e70| 69 6e 67 20 72 65 63 74 | 61 6e 67 6c 65 20 69 73 |ing rect|angle is|
|00005e80| 20 74 79 70 69 63 61 6c | 6c 79 20 61 20 72 65 64 | typical|ly a red|
|00005e90| 72 61 77 20 72 65 63 74 | 61 6e 67 6c 65 20 72 65 |raw rect|angle re|
|00005ea0| 74 75 72 6e 65 64 20 62 | 79 20 74 68 65 20 57 69 |turned b|y the Wi|
|00005eb0| 6d 70 20 6f 6e 20 61 20 | 72 65 64 72 61 77 20 77 |mp on a |redraw w|
|00005ec0| 69 6e 64 6f 77 20 72 65 | 71 75 65 73 74 2e 20 20 |indow re|quest. |
|00005ed0| 49 66 20 52 34 20 3d 20 | 30 2c 20 74 68 65 6e 20 |If R4 = |0, then |
|00005ee0| 74 68 65 20 77 68 6f 6c | 65 20 64 72 61 77 20 66 |the whol|e draw f|
|00005ef0| 69 6c 65 20 69 73 20 72 | 65 6e 64 65 72 65 64 2e |ile is r|endered.|
|00005f00| 20 49 66 20 6e 6f 6e 2d | 7a 65 72 6f 2c 20 6f 6e | If non-|zero, on|
|00005f10| 6c 79 20 6f 62 6a 65 63 | 74 73 20 77 68 69 63 68 |ly objec|ts which|
|00005f20| 20 69 6e 74 65 72 73 65 | 63 74 20 74 68 65 20 63 | interse|ct the c|
|00005f30| 6c 69 70 70 69 6e 67 20 | 72 65 63 74 61 6e 67 6c |lipping |rectangl|
|00005f40| 65 20 61 72 65 20 72 65 | 6e 64 65 72 65 64 2e 0a |e are re|ndered..|
|00005f50| 23 0a 23 53 75 62 70 61 | 67 65 20 66 6c 61 67 73 |#.#Subpa|ge flags|
|00005f60| 0a 44 72 61 77 46 69 6c | 65 5f 52 65 6e 64 65 72 |.DrawFil|e_Render|
|00005f70| 20 66 6c 61 67 73 0a 42 | 69 74 09 4d 65 61 6e 69 | flags.B|it.Meani|
|00005f80| 6e 67 20 69 66 20 73 65 | 74 0a 23 4c 69 6e 65 0a |ng if se|t.#Line.|
|00005f90| 30 09 72 65 6e 64 65 72 | 20 62 6f 75 6e 64 69 6e |0.render| boundin|
|00005fa0| 67 20 62 6f 78 65 73 20 | 28 61 73 20 64 6f 74 74 |g boxes |(as dott|
|00005fb0| 65 64 20 72 65 64 20 72 | 65 63 74 61 6e 67 6c 65 |ed red r|ectangle|
|00005fc0| 73 29 0a 31 09 64 6f 20 | 6e 6f 74 20 72 65 6e 64 |s).1.do |not rend|
|00005fd0| 65 72 20 74 68 65 20 6f | 62 6a 65 63 74 73 20 74 |er the o|bjects t|
|00005fe0| 68 65 6d 73 65 6c 76 65 | 73 0a 32 09 75 73 65 20 |hemselve|s.2.use |
|00005ff0| 52 35 20 61 73 20 66 6c | 61 74 6e 65 73 73 0a 00 |R5 as fl|atness..|
|00006000| 44 41 54 41 f0 01 00 00 | 44 72 61 77 46 69 6c 65 |DATA....|DrawFile|
|00006010| 5f 42 42 6f 78 0a 23 50 | 61 72 65 6e 74 20 44 72 |_BBox.#P|arent Dr|
|00006020| 61 77 46 69 6c 65 5f 0a | 3d 3e 09 52 30 20 3d 09 |awFile_.|=>.R0 =.|
|00006030| 66 6c 61 67 73 20 28 6d | 75 73 74 20 62 65 20 30 |flags (m|ust be 0|
|00006040| 29 0a 09 52 31 20 3d 09 | 70 6f 69 6e 74 65 72 20 |)..R1 =.|pointer |
|00006050| 74 6f 20 64 72 61 77 66 | 69 6c 65 20 62 6c 6f 63 |to drawf|ile bloc|
|00006060| 6b 0a 09 52 32 20 3d 09 | 6c 65 6e 67 74 68 20 6f |k..R2 =.|length o|
|00006070| 66 20 62 6c 6f 63 6b 0a | 09 52 33 20 3d 09 74 72 |f block.|.R3 =.tr|
|00006080| 61 6e 73 66 6f 72 6d 61 | 74 69 6f 6e 20 6d 61 74 |ansforma|tion mat|
|00006090| 72 69 78 2c 20 6f 72 20 | 30 20 74 6f 20 75 73 65 |rix, or |0 to use|
|000060a0| 20 69 64 65 6e 74 69 74 | 79 0a 09 52 34 20 3d 09 | identit|y..R4 =.|
|000060b0| 70 6f 69 6e 74 65 72 20 | 74 6f 20 34 20 77 6f 72 |pointer |to 4 wor|
|000060c0| 64 20 62 75 66 66 65 72 | 20 66 6f 72 20 3c 62 6f |d buffer| for <bo|
|000060d0| 75 6e 64 69 6e 67 20 62 | 6f 78 3d 3e 2e 62 62 6f |unding b|ox=>.bbo|
|000060e0| 78 3e 0a 3c 3d 09 41 6c | 6c 20 70 72 65 73 65 72 |x>.<=.Al|l preser|
|000060f0| 76 65 64 0a 0a 54 68 69 | 73 20 53 57 49 20 69 73 |ved..Thi|s SWI is|
|00006100| 20 75 73 65 64 20 74 6f | 20 64 65 74 65 72 6d 69 | used to| determi|
|00006110| 6e 65 20 74 68 65 20 62 | 6f 75 6e 64 69 6e 67 20 |ne the b|ounding |
|00006120| 62 6f 78 20 28 69 6e 20 | 64 72 61 77 20 75 6e 69 |box (in |draw uni|
|00006130| 74 73 29 20 6f 66 20 74 | 68 65 20 67 69 76 65 6e |ts) of t|he given|
|00006140| 20 64 72 61 77 20 66 69 | 6c 65 2c 20 61 73 20 69 | draw fi|le, as i|
|00006150| 66 20 69 74 20 77 65 72 | 65 20 70 6c 6f 74 74 65 |f it wer|e plotte|
|00006160| 64 20 77 69 74 68 20 74 | 68 65 20 74 72 61 6e 73 |d with t|he trans|
|00006170| 66 6f 72 6d 61 74 69 6f | 6e 20 67 69 76 65 6e 2e |formatio|n given.|
|00006180| 0a 23 0a 23 53 75 62 70 | 61 67 65 20 62 62 6f 78 |.#.#Subp|age bbox|
|00006190| 0a 42 6f 75 6e 64 69 6e | 67 20 62 6f 78 0a 4f 66 |.Boundin|g box.Of|
|000061a0| 66 73 65 74 09 43 6f 6e | 74 65 6e 74 73 0a 23 4c |fset.Con|tents.#L|
|000061b0| 69 6e 65 0a 30 09 6d 69 | 6e 20 78 0a 34 09 6d 69 |ine.0.mi|n x.4.mi|
|000061c0| 6e 20 79 0a 38 09 6d 61 | 78 20 78 0a 31 32 09 6d |n y.8.ma|x x.12.m|
|000061d0| 61 78 20 79 0a 0a 41 6c | 6c 20 76 61 6c 75 65 73 |ax y..Al|l values|
|000061e0| 20 69 6e 20 44 72 61 77 | 20 75 6e 69 74 73 2e 0a | in Draw| units..|
|000061f0| 44 49 52 24 08 02 00 00 | 08 02 00 00 f8 63 00 00 |DIR$....|.....c..|
|00006200| 46 fd ff ff 77 3e 18 1a | 77 00 00 00 13 00 00 00 |F...w>..|w.......|
|00006210| 00 00 00 00 21 52 6f 6f | 74 00 00 00 70 64 00 00 |....!Roo|t...pd..|
|00006220| 47 fd ff ff 1b f2 af bd | 5b 03 00 00 13 00 00 00 |G.......|[.......|
|00006230| 00 00 00 00 66 69 6c 65 | 66 6f 72 6d 61 74 00 00 |....file|format..|
|00006240| cc 67 00 00 46 fd ff ff | 64 90 66 db de 00 00 00 |.g..F...|d.f.....|
|00006250| 13 00 00 00 00 00 00 00 | 6f 62 6a 65 63 74 30 00 |........|object0.|
|00006260| ac 68 00 00 46 fd ff ff | cd 9d 66 db f7 00 00 00 |.h..F...|..f.....|
|00006270| 13 00 00 00 00 00 00 00 | 6f 62 6a 65 63 74 31 00 |........|object1.|
|00006280| a4 69 00 00 46 fd ff ff | cf 41 67 db 93 01 00 00 |.i..F...|.Ag.....|
|00006290| 13 00 00 00 00 00 00 00 | 6f 62 6a 65 63 74 31 32 |........|object12|
|000062a0| 00 00 00 00 38 6b 00 00 | 46 fd ff ff fb a1 b9 22 |....8k..|F......"|
|000062b0| a6 00 00 00 13 00 00 00 | 00 00 00 00 6f 62 6a 65 |........|....obje|
|000062c0| 63 74 31 33 00 00 00 00 | e0 6b 00 00 46 fd ff ff |ct13....|.k..F...|
|000062d0| 68 ed 66 db 7f 01 00 00 | 13 00 00 00 00 00 00 00 |h.f.....|........|
|000062e0| 6f 62 6a 65 63 74 32 00 | 60 6d 00 00 46 fd ff ff |object2.|`m..F...|
|000062f0| e7 a8 b9 22 70 00 00 00 | 13 00 00 00 00 00 00 00 |..."p...|........|
|00006300| 6f 62 6a 65 63 74 35 00 | d0 6d 00 00 45 fd ff ff |object5.|.m..E...|
|00006310| f0 96 e2 ff 9e 00 00 00 | 13 00 00 00 00 00 00 00 |........|........|
|00006320| 6f 62 6a 65 63 74 36 00 | 70 6e 00 00 46 fd ff ff |object6.|pn..F...|
|00006330| 1a fe 66 db 85 00 00 00 | 13 00 00 00 00 00 00 00 |..f.....|........|
|00006340| 6f 62 6a 65 63 74 37 00 | f8 6e 00 00 46 fd ff ff |object7.|.n..F...|
|00006350| cd 1d 67 db 08 01 00 00 | 13 00 00 00 00 00 00 00 |..g.....|........|
|00006360| 6f 62 6a 65 63 74 39 00 | 00 70 00 00 45 fd ff ff |object9.|.p..E...|
|00006370| c5 7c e2 ff 34 01 00 00 | 13 00 00 00 00 00 00 00 |.|..4...|........|
|00006380| 70 61 74 68 73 74 79 6c | 65 00 00 00 34 71 00 00 |pathstyl|e...4q..|
|00006390| 46 fd ff ff 16 2c 67 db | 41 02 00 00 13 00 00 00 |F....,g.|A.......|
|000063a0| 00 00 00 00 74 65 78 74 | 62 6f 64 79 00 00 00 00 |....text|body....|
|000063b0| 78 73 00 00 45 fd ff ff | 7c 1d e2 ff 89 00 00 00 |xs..E...||.......|
|000063c0| 13 00 00 00 00 00 00 00 | 74 65 78 74 73 74 79 6c |........|textstyl|
|000063d0| 65 00 00 00 04 74 00 00 | 47 fd ff ff a7 81 b6 cd |e....t..|G.......|
|000063e0| 88 00 00 00 13 00 00 00 | 00 00 00 00 64 61 73 68 |........|....dash|
|000063f0| 73 74 79 6c 65 00 00 00 | 44 41 54 41 77 00 00 00 |style...|DATAw...|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.